Using HostComponent as target for effect in skin file

Hi,
I am creating a collapsible panel. I have the component file and a skin file.
I have declared collapsed and normal states in my skin file.
when the state change happens i need to show some animation, so used the transition effects. as below.
<s:transitions>
      <s:Transition fromState="*" toState="collapsed">
         <s:Parallel duration="250" target="{hostComponent}">
            <s:Resize heightTo="{hostComponent.collapsedHeight}" />
         </s:Parallel>
      </s:Transition>
      <s:Transition fromState="*" toState="normal">
         <s:Parallel duration="250" target="{hostComponent}">
            <s:Resize heightTo="{hostComponent.expandedHeight}" />
         </s:Parallel>
      </s:Transition>
</s:transitions>
Everything works fine with this.
someone suggested me that using hostComponent as target for the effect is not a good practice? are ther any disadvantages of this.
I tried setting one of the group as target for the effect but that only resizes the particular group and not entire component. if i set the skin as target i.e. "this", still the component doesnot resize.
any suggestions?

Hi,
I am creating a collapsible panel. I have the component file and a skin file.
I have declared collapsed and normal states in my skin file.
when the state change happens i need to show some animation, so used the transition effects. as below.
<s:transitions>
      <s:Transition fromState="*" toState="collapsed">
         <s:Parallel duration="250" target="{hostComponent}">
            <s:Resize heightTo="{hostComponent.collapsedHeight}" />
         </s:Parallel>
      </s:Transition>
      <s:Transition fromState="*" toState="normal">
         <s:Parallel duration="250" target="{hostComponent}">
            <s:Resize heightTo="{hostComponent.expandedHeight}" />
         </s:Parallel>
      </s:Transition>
</s:transitions>
Everything works fine with this.
someone suggested me that using hostComponent as target for the effect is not a good practice? are ther any disadvantages of this.
I tried setting one of the group as target for the effect but that only resizes the particular group and not entire component. if i set the skin as target i.e. "this", still the component doesnot resize.
any suggestions?

Similar Messages

  • I received an email containing pdf files. I am using Adobe Reader Touch for Windows 8. File doesn't open

    I received an email containing pdf files. I am using Adobe Reader Touch for Windows 8. File doesn't open. I am a new user to Windows 8.

    The full featured Reader for Windows 8 is Reader XI.
    Reader Touch works in all Windows 8 systems BUT it is intended mainly for use in mobile tablets - I see no particular reason to use it unless you can'r run Reader XI. Given it is mainly for use on mobile that can't use Flash, we aren't likely to ever see the development team spending their time on this.
    If you want the latest and greatest - at least try Reader XI, not X! (Flash is a separate download, it will prompt).

  • Audio bug with WAV files: use mp3, not wav for syncing long audio files

    Just a tip:
    I've noticed another audio bug in Presenter (including 7.05) but there is a workaround. I often export the audio as a single, long clip from pre-recorded lecture videos, and sync it with the powerpoint slides in Presenter. I've found it easiest to import the long audio file into the first slide, then sync using the Edit Audio window. I find that much easier to use than the Sync audio window.
    However, If you use WAV format for the imported audio file, sometimes Presenter will simply refuse to play back anything beyond about 5 minutes into the timeline in the Edit Audio window. Nothing fixes it - restarting, re-importing, etc. However the problem goes away if you save the audio as mp3.
    Ellen
    http://thedesignspace.net

    Why did you post this in the LiveType forum?
    I would recommending posting your question in the Final Cut Pro forum.
    Have you tried trashing your preferences?
    Anyways... here is a thread with a similar problem:
    http://discussions.apple.com/thread.jspa?threadID=656515

  • Using intel as target for install on PPC Mac

    Is it possible to put a Jaguar install disk on the intel mac's desktop and install the system on a old iMac with a bum CD ROM drive by using the intel Mac as a target?

    Nope. You cannot boot an Intel Mac with anything but an Intel version of OS X. You cannot connect to the Intel Mac's optical drive via Target Disk Mode. TDM will only connect to a hard drive.
    There may be another way, however, if you have an external FW drive. You could use Disk Utility to clone the Jaguar installer disc to an external FW drive. You could then boot the old iMac from the FW drive (assuming it has FW ports.)

  • File name used by plug-in for saving the image file.

    I have a program that creates a web page that has an object tag with a call to a program and that program delivers a PDF file.  When my users want to save that image the name of the image is a random name.  Is there any way to make the plug-in, Adobe, use the meta tag Title or any other infromation that my program can provide, as image (file)  name to be used for saving the image. (the initial suggested name)?  I really appreciate your help.

    One option is to rename the file after it's been exported using Windows File I/O API.

  • ITUNES - Are there disadvantages to using different Apple IDs for inistalling the .app?

    ITUNES - Are there disadvantages to using different Apple IDs for inistalling the .app file not overwrite the previous one at itunes?

    In my opinion it is best to use one Apple ID on your computer and iPad. Using multiple IDs causes confusion.
    I also suggest that each person with their own iOS device have their own unique Apple ID. On the computer create different accounts for each user so that iTunes on each account can be associated with the correct Apple ID.

  • Using Final Cut Express for video editing without attaching external device

    Hello,
    I am a newbie to Final Cut Express as well as Mac's in general. I am wanting to use Final Cut Express for video editing of files, but without an attached camera. Is there any way to have Final Cut Express startup without having it prompt for an external A/V device? I just want to do some basic editing and use the chroma key feature. Can anyone help?
    Greatly Appreciated,
    Knight2000
    iMAC   Mac OS X (10.4.9)  

    Hi Zak,
    Unfortunately, I've tried that and I get into an issue that was addressed in this posting: http://discussions.apple.com/thread.jspa?threadID=836595&tstart=120 where FCE will show the splash screen and then the program doesn't start. I then have to delete FCE preferences and then I will get the Easy Setup dialog box prompt me again for choosing the external device.
    I am looking for a way to use FCE for video editing of files that I already have on my computer that I created using iClone software and is in .avi, or .mp4 format. I get FCE to work one time without the external device actually being attached, but then when restarting the program I get the dialog box asking for the external device and if it's not there, the program just closes, and to get it to work again, I have to delete the preference files and go through the process all over again which is time consuming especially when this is at work. If FCE is not the right program, can anyone suggest a good video editing program that doesn't require an external device and is as good or better than FCE?
    Thanks again for your help and support,
    Knight2000
    iMAC   Mac OS X (10.4.9)  

  • [svn] 2569: Adding [HostComponent] metadata functionality for use with Gumbonent skins to provide a

    Revision: 2569
    Author: [email protected]
    Date: 2008-07-22 13:55:02 -0700 (Tue, 22 Jul 2008)
    Log Message:
    Adding [HostComponent] metadata functionality for use with Gumbonent skins to provide a
    strongly typed reference (hostComponent) back to the owning component, automagically.
    Reviewer: Paul (Compiler), Ryan (SDK)
    QA: Yes
    Modified Paths:
    flex/sdk/trunk/development/eclipse/flex/flex4/.actionScriptProperties
    flex/sdk/trunk/frameworks/projects/flex4/build.xml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/core/SkinnableComponent.as
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ApplicationSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ButtonSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/CheckBoxSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/HScrollBarSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/HScrollBarThumbSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/HScrollBarTrackSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/HSliderSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/HSliderThumbSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/HSliderTrackSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ItemsComponentSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ListSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/PanelSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/RadioButtonSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ScrollBarDownButtonSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ScrollBarLeftButtonSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ScrollBarRightButtonSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ScrollBarUpButtonSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/SelectorSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/SpinnerDecrButtonSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/SpinnerIncrButtonSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/SpinnerSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/TextAreaSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/TextInputSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ToggleButtonSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/VScrollBarSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/VScrollBarThumbSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/VScrollBarTrackSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/VSliderSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/VSliderThumbSkin.mxml
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/VSliderTrackSkin.mxml
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilationUnit.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/SyntaxTreeEvaluator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_en.properties
    Added Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/HostComponentEvaluator.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/HostComponentExtension.java

    Try assigning a rollover to each conatiner mc as it is created...
    scrollerBase["imageHolder" + i].onRollOver = function(){
          trace("SUCCESS");

  • Unwanted events are also logged in the view created for a specific target from the rules created using its base target

    I have created Event or Alert view using a target "My.Target" which is derived from a base target "Windows Server".
    All the events or alerts are captured correctly from the servers discovered by "My.Target" but the same view also shows the events and alerts from other servers which has a rule created with a base target "Windows Server".
    Is there any option to filter the base target at view level other than using a custom field as it doesn't work for the alerts generated using "Monitors".
    Any help would be greatly appreciated.
    Thanks in advance.

    There is a class "My.Servers" derived from "Microsoft.Windows.Server.Computer" as below -
      <TypeDefinitions>
        <EntityTypes>
          <ClassTypes>
            <ClassType ID="My.Servers" Accessibility="Public" Abstract="false" Base="MicrosoftWindowsLibrary!Microsoft.Windows.Server.Computer" Hosted="false" Singleton="false" Extension="false">
              <Property ID="Name" Type="string" AutoIncrement="false" Key="false" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false" Scale="0" />          
            </ClassType>
          </ClassTypes>
        </EntityTypes>
      </TypeDefinitions>
    There is a discovery "MyServersDiscovery" to discover servers with presence of some registry key as below -
    <Monitoring>
        <Discoveries>
          <Discovery ID="MyServersDiscovery" Enabled="true" Target="MicrosoftWindowsLibrary!Microsoft.Windows.Server.Computer" ConfirmDelivery="false" Remotable="true" Priority="Normal">
            <Category>Discovery</Category>
            <DiscoveryTypes>
              <DiscoveryClass TypeID="My.Servers">
                <Property TypeID="My.Servers" PropertyID="Name" />
              </DiscoveryClass>
            </DiscoveryTypes>
            <DataSource ID="Name.AttributeDiscovery" TypeID="MicrosoftWindowsLibrary!Microsoft.Windows.FilteredRegistryDiscoveryProvider">
              <ComputerName>$Target/Property[Type="MicrosoftWindowsLibrary!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
              <RegistryAttributeDefinitions>
                <RegistryAttributeDefinition>
                  <AttributeName>Name</AttributeName>
                  <Path>SOFTWARE\MyRegKey</Path>
                  <PathType>0</PathType>
                  <AttributeType>0</AttributeType>
                </RegistryAttributeDefinition>
              </RegistryAttributeDefinitions>
              <Frequency>300</Frequency>
              <ClassId>$MPElement[Name="My.Servers"]$</ClassId>
              <InstanceSettings>
                <Settings>
                  <Setting>
                    <Name>$MPElement[Name="MicrosoftWindowsLibrary!Microsoft.Windows.Computer"]/PrincipalName$</Name>
                    <Value>$Target/Property[Type="MicrosoftWindowsLibrary!Microsoft.Windows.Computer"]/PrincipalName$</Value>
                  </Setting>
                  <Setting>
                    <Name>$MPElement[Name="SystemLibrary!System.Entity"]/DisplayName$</Name>
                    <Value>$Target/Property[Type="SystemLibrary!System.Entity"]/DisplayName$</Value>
                  </Setting>
                  <Setting>
                    <Name>$MPElement[Name="My.Servers"]/Name$</Name>
                    <Value>$Data/Values/Name$</Value>
                  </Setting>
                </Settings>
              </InstanceSettings>
              </Expression>         
            </DataSource>
          </Discovery>
    </Monitoring>
    Created 2 views "My.Alert.View" and "My.Event.View" with Target "My.Servers" as below -
     <Presentation>
        <Views>
          <View ID="My.Alert.View" Accessibility="Public" Enabled="true" Target="My.Servers" TypeID="SystemCenter!Microsoft.SystemCenter.AlertViewType" Visible="true">
            <Category>Operations</Category>
          </View>
          <View ID="My.Event.View" Accessibility="Public" Enabled="true" Target="My.Servers" TypeID="SystemCenter!Microsoft.SystemCenter.EventViewType" Visible="true">
            <Category>Operations</Category>
          </View>
    </Views>
    </Presentation>
    The above views display events and alerts generated by rules targeted on the serves discovered with "MyServersDiscovery" correctly.
    The major issue here is - if there is a rule in same or any other management pack for which the target is "Windows Server", the alert or event generated by that rule is also shown in these views which is not expected.
    It seems it is because the target for "My.Alert.View" and "My.Event.View" is "My.Servers" which is dervied from "Microsoft.Windows.Server.Computer" so by default all the rules targeted on its base class "Microsoft.Windows.Server.Computer" are also visible
    here.
    Is there any way to avoid this?

  • Can a 27" iMac late 2012 be used as a target monitor (screen) for a Raspberry Pi ?

    Can a 27" iMac late 2012 be used as a target monitor (screen) for a Raspberry Pi ?
    If yes, please describe how it can be done?
    Thanks

    Nope, you are describling Target Display Mode. Please read Apple's Target Display Mode: Frequently Asked Questions (FAQ) and you will see the other device (in your case a Raspberry Pi) has to have a Thunderbolt port that supports TDM.

  • Can iPhone be used as a target drive like iPod for.....

    Thanks for looking
    I'd love the ability to have iPhone be used as a target disk for storage of small files but more importantly to, via USB, download my Digital images from my camera.
    So, can I use the usb to download from the camera?
    Asking too much would be having the iPhone's app put a album togeather when you download jpg's etc... but I could really use the storage of images etc...
    Thanks

    The iPhone does not support disk mode.
    The only way to transfer data to and from the iPhone is via a USB connection to your Mac. You can import photos taken by the iPhone to iPhoto just as with a digital camera and you can transfer photos (select photo albums) from iPhoto to the iPhone.

  • Unable to create Target for siebel 8.1.1 using Oracle Application Adapter

    Hi,
    I am unable to connect to siebel application using Oracle Application Adpater for weblogic server.Details are as follows
    OS - Linux x86
    Weblogic - 10.3.3
    SOA - 11.1.1.3
    Siebel - 8.1.1
    When tried to create target following error is thrown
    "Error getting targer[Siebel] - Invalid or incomplete string .(SBL- JCA - 00301)"
    Can any body help me to resolve this issue.
    Regards
    Srinivas Pusa

    Hi,
    There is definitely a table called HSP_LOCK in the planning applications repository, are you sure you are looking in the correct place.
    Anyway there is also a utility (HspUnlockApp) in the \planning\bin directory that should unlock the app and will save you having to mess around with any tables, more details :- http://download.oracle.com/docs/cd/E12825_01/epm.111/hp_admin/ch04s02.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • [svn:fx-trunk] 5061: Changed the skin to use hostComponent rather than fxComponent so that binding happens on a strongly typed instance .

    Revision: 5061
    Author: [email protected]
    Date: 2009-02-24 14:18:51 -0800 (Tue, 24 Feb 2009)
    Log Message:
    Changed the skin to use hostComponent rather than fxComponent so that binding happens on a strongly typed instance. By doing this we save the overhead of calling describeType() and doing RTTI. Also updated the backgroundColor to be cast to uint until the getter/setter is updated to return that (currently it is object)
    QE: No
    Doc: No
    Checkintests: Pass
    Reviewer: Ryan F & Glenn
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxApplicationSkin.mxml

    Revision: 5061
    Author: [email protected]
    Date: 2009-02-24 14:18:51 -0800 (Tue, 24 Feb 2009)
    Log Message:
    Changed the skin to use hostComponent rather than fxComponent so that binding happens on a strongly typed instance. By doing this we save the overhead of calling describeType() and doing RTTI. Also updated the backgroundColor to be cast to uint until the getter/setter is updated to return that (currently it is object)
    QE: No
    Doc: No
    Checkintests: Pass
    Reviewer: Ryan F & Glenn
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxApplicationSkin.mxml

  • Why are there 2 'after effects', 14 and regular and which one is the best use? It seems a little crazy to use twice the storeage for the same program?

    I up graded adobe cc last night and the cc app down loaded up-grades to my original cc apps, plus another app of each labeled 14. Why do we need two copies of the same app on our machines, and which one is the best to use. I hope adobe in not going down the same road as apple and screwing up the works. i still remember way back when adobe goofed it so bad I switched to final cut. Now apple has screwed up final cut and I am back to Premiere. I know we have huge drives now, but come on, why two bit eating monsters that do the same thing. Stan / Desert Wind Productions.

    The "2014" versions are new versions of the software. It's like the difference between CS5 and CS6. The new one is (most of the time) significantly better. This isn't any weird screwup, it's just a new version.
    You may want to keep the old version around for compatibility, client needs, safety, etc. However, it probably behooves you to use the current version for all of its new features, etc.

  • MDT Console with more then 15 machines, How to use the same drivers for more machines.

    Hello,
    I'm am looking for a solution to make our MDT design as effective as possible(as small as posible).
    The Situation:
    The company has more then 15 different computers added to the MDT console for the automated installation of Windows 7. The installations are done in 2 different ways, 1 with a local USB key installation (with the deployment folder on the USB key) and the other
    installation is a network USB key installation (with the deployment folder on the server).
    The local USB key exists for offices in parts of the world where the internet connection is poor.
    The problem:
    We have machines which can use the same driver for different kinds of hardware functions (LAN, WLAN, etc..)
    If we add a new machine to the MDT and we don't check the box for "Import drivers even if they are duplicates of an existing driver" we will automatic use the driver which already exists in the deployment folder. If say half a year
    later we stop using an older machine which "may" have drivers that are being used for other machines and we delete the machine from MDT we should
    NOT check the box "Completely delete these items, even if there are copies in other folders". The problem is that this can also lead to a lot of unused drivers in the deployment folder also because we do not know exactly how many
    computers are using a certain driver.
    At the moment we have another deployment share with for each machine its own drivers installed (so some drivers will be multiple times in the deployment folder) as you can guess this becomes really big.(deployment folder of more then 24 GB). The advantage
    of this is that we can delete a machine from the MDT list without having to worry if the drivers for that machine might be used by other machines. It is now just becoming to big in size(GB).
    The Question:
    Is there not an option within MDT that checks automatically if the drivers connected to a certain machine in MDT are being used by other machines? In this case we would check the box "Completely delete these items, even if there are copies in other folders"
    and MDT would not delete the drivers which are still used for the installations of other computers.
    Thanks in advance.
    Greets,
    Arie

    Arie,
    I think you are over-complicating this. Basically using drivers that already exist is the way to go. Otherwise drivers will be imported a second, third or fourth time. Which also takes up allot of disk space. If you're concerned about driver management,
    then I would suggest to drop your concerns, since there is nothing to less you can do about this particular issue. As long as you don't delete the driver that's been imported earlier by another machine there is nothing to worry.
    Ask yourself:
    - how long am I going to support model x
    - how many times do I want to update drivers
    With selection profiles you can easily target which content needs to go where (on your USB drive of-course)
    I can imagine that managing 25 shares for 25 different models, just because you 'refuse' to have old drivers in your share, or have removed support for some hardware models, isn't really time and energy efficient too.
    If you take a look in your deploymentshare\control folders you will see some XML files. These XML files hold all the entries in your deploymentshare. So your drivers.xml and drivergroups.xml (depending on the number of groups you have) are going to be very
    big XML files. These XML files are read by MDT to identify the objects in MDT and under which folder the objects are located.
    It's not possible to create or have an dependency between driver files and hardware models, other then creating groups under "Out-of-box Drivers" and using selection profiles.
    Another suggestion would be to decrease your number of hardware models drastically. On the other hand, having 25 Gb of offline media isn't really a big deal either. Portable and removable media of those sizes (32 and 64 Gb) isn't that expensive as it used
    to be 5 years ago.
    Don't get me wrong, I perfectly understand your desire to manage this, but MDT doesn't provide any other way, then the things I have pointed out to you here.
    Good luck! :)
    If this post is helpful please click "Mark for answer", thanks! Kind regards

Maybe you are looking for

  • Help needed to interpret kernel panic

    Hello everybody Recently I've had a couple of kernel panics on my MacBookPro 13'' (OSX Lion 10.7.2 version, 2,26 GHz Intel Core 2 Duo, 8GB 1333 MHz DDR3) The last one occured today : I was opening Google Earth (the last version) to see the GPS positi

  • How can I turn captured video into a DVD

    I am a premiere newbie. Can anyone tell me the basic steps to take captured video (already can do..) and turn it into a DVD which can be read on a regular TV-DVD player.? Even a few basic starter steps to send me down the right road would be helpful

  • Java Thread Dump and String encoding

    Hi My Application is server application, running on a linux box with JDK 1.4.2_04 Recently, my application got hang, there are no processing. when i took stack trace. I found "Thread-6204" prio=1 tid=0x0x8e3a400 nid=0x2621 waiting for monitor entry [

  • 6301 Address Book Search

    I recently received a 6301 on Orange. It's a great phone with some really nice features. I use a Mac, so modified iSync to copy all my contacts across (using script from www.james-lloyd.com). This worked fine, and all my contacts are in the phone wit

  • Suddenly nothing plays in Premiere Pro

    I have been dealing with this since Sunday morning when I allowed Adobe Updater to do its thing.  Ever since then Premiere has been useless. When I hit the space bar or press the play button nothing happens.  I might hear a nanosecond of audio and th