Simple task - syntax Question (how do you pass variables from one component to another component - databinding)?

Hi all

I'm moving some width/height/URL of a Video Player component to a Social Bookmarking component incorporate text entry field. (for people capture and share videos).

I know that it's a simple task, but it's the end of the day and I seem to have a brain failure... What is the syntax to achieve this? Do I have to import the video player component? These widths/heights/URLs are all generated dynamically by a XML... should I be pulling the XML or reuse just variables already existing in the Video Player component?

Here is my code...

Video player:

[Bindable]

var public source: String = "";

[Bindable]

public var autoPlay:Boolean = false;

[Bindable]

public var fullScreenMode:Boolean = false;

[Bindable]

public var clipTag:String = '_movie;

[Bindable]

public var iag_code:String = "";

[Bindable]

public var officialURL:String = "http://www.movies.com/"; ""

[Bindable]

public var referer:String = 'unknown ';

[Bindable]

public var gID: String;

[Bindable]

public var starterImageURL:String = 'http://www.movies.com/jazzmaster/images/default_starter_image.

[Bindable]

public var oldWidth:Number;

[Bindable]

public var oldHeight:Number;

Component sharing:

< mx:HBox

Height = "10%".

horizontalCenter = "-25".

Red = '0 '.

paddingBottom = "5" >

< mx:Text text = "" Embed Code: "paddingTop ="1"color ="#FFFFFF"fontSize ="12"/ >"

< mx:TextInput text = "{oldWidth}" / >

< / mx:HBox >

The above code generates an error... "Any attempt of property inaccessible oldWidth via a reference with a static type com:SharingBookmarks."

Thank you all!

DK

Try this...

Create a flex project and add a folder called 'src '.

create a new component MXML named "VideoComp.mxml" and copy/paste

http://www.Adobe.com/2006/mxml"width ="400"height ="300">

[Bindable]

public var videoWidth:int = 300;

[Bindable]

public var videoHeight:int = 300;

]]>

create a new component MXML named "SharingComp.mxml" add copy/paste this...

http://www.Adobe.com/2006/mxml"width ="400"height ="300">

[Bindable]

public var videoWidth:int;

[Bindable]

public var videoHeight:int;

]]>

and here's the main.mxml file

http://www.Adobe.com/2006/mxml '.

xmlns:src = "src.*" >

private void doSomething (): void

{

sharingComp.videoHeight = videoComp.videoHeight;

sharingComp.videoWidth = videoComp.videoWidth;

}

]]>

Hope this helps,

BaBo,

Tags: Flex

Similar Questions

  • How do you 'move' databases from one server to another

    Hello

    Here is a brief description of my assignment.

    We have two Redhat Linux 4 64-bit server where two Oracle 10.2.0.4 database 64-bit run (one on each server).
    < li > DB on server1 is using file system for storage.
    < li > DB on the 2nd Server using ASM.
    < li > size of the two is between 75 and 80 GB.
    < li > I need to move data to new servers (same platform) with minimum downtime.
    < li > there is no upgrade required during this displacement and migration. The two DBs must be returned as-is.
    < li > new servers can be on VMWare - I do not know it right now. But please let me know if that will make a difference.

    I'd be very grateful if someone could please provide me with some high level guidelines to make this move.

    Best regards

    Yes, you need to install DSO on the new server. If you do not have media / downloaded installers used for the installation of the first server, you can connect a SR with Oracle's Support for a new download / CD media.

    Hemant K Collette

  • How to move the FILE from one place to another and keep "Indexing" have to move to the unknown location so you can't discover its full file path? Windows instructions provide information wrong re: how to do this!

    Make a bunch of audio files, placed in a folder on my desktop. Files initially sent to RealPlayer to burn, but when finished burning CD and went to read a CD, folder got seized by Media Player, 'Indexed' and disappeared from the office. I'm a relatively new computer user, and I need to learn more about file paths, how to view the path FULL of a file on my computer and how to type (create) full path when I need to. The "Indexing" feature seems to erase this lesson for me, and after having spent four hours trying to find Vista instructions on "How to move the file from one place to another", I gave up! Windows 'Help and Support' on my computer gives wrong directions. It states that if I right click on a folder > properties, a dialog box opens with a tab by which I can move my account. There is no tab location here. I found locations tab when right click on the "Mobile" folder, but still no option to "move file". No idea what is the folder "Roaming" or why it's on my computer. I want my audio files in the My Music folder, but this place is "access denied." Don't know how to get the audio file it in any case, but if anyone has any advice, I would be very happy! Thank you. PS - I had no problem moving folders in XP. I don't like the idea that a computer is to decide where to put my files. I want to control where I put my files. I don't like the way search works under Vista. I liked the XP search companion better because, for a computer fool like me, it was really easy to organize and find files and folders and had an option specific to find audio and video file TYPES.

    Here is an article on how to move your personal folders in Vista: http://www.howtogeek.com/howto/windows-vista/moving-your-personal-data-folders-in-windows-vista-the-easy-way/.  If you're talking about the special folders (such as photos, Documents, office...), then here is an article on how to move: http://www.winhelponline.com/articles/95/1/How-to-move-the-special-folders-in-Windows-Vista.html.

    If you have trouble with the search after you move the files, then rebuild the index: http://www.tech-recipes.com/rx/2103/vista_rebuilding_the_search_index/.  Here is an article on how to use Indexing Options in Vista that may be useful for you: http://www.vistax64.com/tutorials/69581-indexing-options.html.

    If the above does not help, your problem seems to relate to the image of the files/folders and their interactions with Media Center (which operate on different other folders).  Please repost your question in images and video Forum at: http://social.answers.microsoft.com/Forums/en-US/vistapictures/threads where the people who specialize in issues of the image will be more than happy to help you with your quesitons.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How can I move notes from one folder to another?

    I thought that some of my notes were missing, but it seems that some are stored in icloud and the other in different files associated with my personal email address.  How can I make sure that they are all on the icloud (in case I lose my phone, when I update my phone, etc.)?  How can I move them from one folder to another?  I not create separate records in the first place. I guess it happened when I updated to the current IOS.  Thanks for your help!

    Slide left on each note you want to move to your iCloud folder. Move and delete option is available. The rest is simple.

  • How can I move photos from one date to another in my catalog? Downloaded LR of photos taken over several days to a date. LR6 PC Win7

    How can I move photos from one date to another in my catalog? Downloaded LR of photos taken over several days to a date. LR6 Win7 PC.

    Hi bubba43,

    Please select the images in the library grid mode Module and then drag and drop them in another folder you want.

    Kind regards

    Tanuj

  • How to copy a file from one folder to another?

    Windows 7, my images: how to COPY a file from one folder to another?

    Right-click on the file and drag it to the other folder. Release the button on the right and click on copy here.

  • How can I move photos from one folder to another?

    * Original title: photos

    How can I move photos from one folder to another?

    A way - http://windows.microsoft.com/en-US/windows7/Move-and-copy-files-using-drag-and-drop

    More here - §ion_5 http://windows.microsoft.com/en-us/windows/working-with-files-folders#1TC=windows-7

  • How to copy a layer from one psd to another

    How to copy a layer from one psd to another

    Select... Select all, Ctrl + C to copy the contents to the Clipboard, and then in the other PSD image use Ctrl + V to paste the content in its own layer.

    Ken

  • How to move virtual machines from one host to another without full VI and vMotion?

    Hello

    could you help me with a question?

    I have two installed hosts with ESXi 3.5 U5, which are connected to the shared iSCSI (Openfiler) - VMs storage are installed on the storage disk. My requirement is to have a cheap solution of DR - in case of failure of a host, I need to move and start VM on the host of work. How to achieve without going through VMware Infrastructure 3.5 and vMotion?

    I found this article:

    http://www.virtualizetips.com/2010/04/how-to-move-a-VM-without-vCenter-or-storage-VMotion/

    but RCLI needs Infrastructure of VMware ESXi does not have default CLI So, how to move VMs between hosts (of course I mean "cold" move) without byuing any additonal VMware SW? It is generally possible in my situation?

    Thank you.

    ARO

    Danas

    If the virtual machines are running in shared storage (two guests see the same storage iSCSI or NFS) then it's simple. If a host goes down, then look for the data store on the ESXi host work. Navigate through folders for each virtual machine, right-click on the VMX file and add to the inventory. You will then be able to turn on the virtual machine.

    To move a virtual machine from one host to another, as long as both hosts had the same processors, you can pause the VM on the single host, browse and add the virtual machine to the inventory on the second break host and the United Nations.

    If the virtual machines are on local storage, but the two hosts are connected to the same shared storage, clone virtual machines on a daily basis from local storage to shared storage. Use something like ghettoVCB http://communities.vmware.com/docs/DOC-8760 make the clone. In the case of a server failure, you will be able to browse the data store, add to the inventory on the shared storage and switch the cloned machine.

  • How to send values textbox from one screen to another screen

    Hello guys

    can anyone tell me that how can I get the value of the editField from one screen to another screen.

    Please provide the code.

    Thanks in advance

    Click on a single screen Button.of. Pass the value of the textField like this.

    class first extends MainScreen implements FieldChangedListener
    {
        public first()
        {
            ....................
            Declareation of textField and other controls.
        }
        public void fieldChanged(Field f, int context)
        {
            //on the clicking on the Button here the code
            if (f== button)
            {
                String str=textfield.getText();
                UiApplication.getUiApplication().pushScreen(new second(str))
            }
        }
    }
    
    // another screen
    
    class second extends MainScreen
    {
        public second(String str)
        {
            //Now str contain that values.
        }
    }
    

    ------------------------------------------------------------------------------------
    Kudo press to say thank you to the developer.
    Also, press accept it as a button when you got the Solution.

  • How to transfer a project from one computer to another file

    Hello

    In order to burning a DVD on my laptop that is older, I'm trying to transfer a working from a library folder and insert it into another on the old computer. I used a USB key. All the data has been transferred, but how do i:

    1) enter a library on the old computer? I DID this, but it will not appear in the Final Cut. I "Showed the content" and it allowed me to put the file in THIS library, but it will not appear in the column "libraries."

    (2) create its OWN library on the old computer?

    Thank you.

    Mike Scully

    Stay out of the whole library. This is a complex database. If the components have moved the database becomes useless. Pretty much all you need to do inside the library can be done from the inside of the PCF.

    If you cannot move the entire library from one machine to another on an external drive, you can move a project of a new library. That will copy only the clips used in the project. You can take it on the other machine. You can also export a master file and consider on the other machine to make the DVD. It is perhaps the simplest.

  • How to transfer several photos from one folder to another

    I want to delete a number of photos in my folder and then transfer some blocks of them to other folders to better organize. I know how to remove one at a time, but I don't know how to highlight a bunch of them for moving.  They are coming up with numbers, like 079, 080, 081 etc but not on a list where I can highlight.  I also want to do the same with several short videos I have.  By the way, I have transferred all this media from my iphone / ipad and everything came automatically - that is why I need now to separate and organize especially if I want to send copies to parents and friends.

    I want to delete a number of photos in my folder and then transfer some blocks of them to other folders to better organize. I know how to remove one at a time, but I don't know how to highlight a bunch of them for moving.  They are coming up with numbers, like 079, 080, 081 etc but not on a list where I can highlight.  I also want to do the same with several short videos I have.  By the way, I have transferred all this media from my iphone / ipad and everything came automatically - that is why I need now to separate and organize especially if I want to send copies to parents and friends.

    ==========================================
    You can select multiple by holding your CTRL key while left
    by clicking on the thumbs or file names.

    You can also select groups of photos by selecting one...
    While holding down your shift key and select another further
    fixing the list. All photos between the two selected will be
    chosen too.

    Move photos from one folder to another.

    With the thumbnail selected... type... CTRL + x. sa is the
    keyboard shortcut for "cut". Selected thumbnails are
    bland and appear grey.

    Open the folder that you want to move the photos to, and then type...
    CTRL + V. sa is the keyboard shortcut for paste.

  • How can we change CS5 from one PC to another PC? How to move CS5 to another PC?

    We have CS5 on a PC with Windows 7. Now wet want o change to another PC with Windows 8. How to do it. I work for a company, but I don't know how to change the program from one to the other PC. Is this possible? The passage from one to the other PC?

    assuming that there are no licensing issues, simply install on computer 2 using the installation files.  If you have already installed/enabled on both computers and that you have a single user (as opposed to a volume license) license, you will need to disable this feature (help > deactivate) on one of the other two before installing.

    Downloads available:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

    window using the Lightroom 3 link to see these "important Instructions".

  • How to migrate a VM from one cluster to another cluster using PowerCLI

    When I run the command

    Move-VM -VM $vm -Destination $ResourcePool -Confirm:$false

    I am getting following error

    Move-VM : 19.7.2011 15:32:07    Move-VM        Destination is a Resource Pool owned by a Cluster, but the VM you are trying to move is not in that Cluster. Please select for destination a Host 
    in that Cluster or a Resource Pool owned by a stanalone Host.    
    At line:1 char:8
    + Move-VM <<<<  -VM $vm -Destination $ResourcePool -Confirm:$false
        + CategoryInfo          : InvalidArgument: (Flis:ResourcePoolImpl) [Move-VM], VimException
        + FullyQualifiedErrorId : Client20_VmHostServiceImpl_MoveVm_ResourcePoolOwnedByCluster,VMware.VimAutomation.ViCore.Cmdlets.Commands.MoveVM

    I'm trying to migrate VMS from one cluster to another cluster.

    I can perform this migration of vsphere, but not through powercli.

    Best regards

    The first shot must also have a data store setting.

    Move-VM -VM $vm -Destination $NewHost -Datastore $ds -Confirm:$falseMove-VM -VM $vm -Destination $ResourcePool -Confirm:$false
    

    Unless your data warehouses are shared between the 2 groups and you intend to keep these warehouses of data with the new cluster.

  • Simple Question - How to move virtual machines from 1 box to another?

    Hello

    I'm new to VMware products so please bare my stupidity.

    I have 2 servers I received vSphere on. They have all two internal storage (SAN No. still ) which means I can't take advantage of vMotion. So that leaves me to figure out how would one move a Virtual Machine from one box to the other? I currently have two boxes configured with a vCenter Server under 1 datacenter server.

    The simplest solution (considering vCenter) is cold using migrate operation.

    André

    * If you found this device or any other answer useful please consider awarding points for correct or helpful answers

Maybe you are looking for

  • Reformat Y410

    I have a Y410 with a very small space in C drive, space is completely plagued by updates. I intend to repartition the hard disk to increase the size of the C drive and liberate the hidden partition. Can someone advise me please the procedure?

  • Restart and save the State of the desktop computer

    Having just rebooted my PC after installation of an update, I wonder why it is not possible to restart until the PC was in first place at the hibernation. I had loads of IE Windows open and a few other programs and now I have them all start over and

  • Im having the same error 646 but my downloader download

    Update Windows says there are 9 updates to download, but I can't download any of them I get 646 error code when I put a link to download them one by one, I press download and can only save file to download my screen do not run then once its on my bot

  • Customer global VPN will not connect on the first attempt

    Global VPN Client version 4.9.4.0306. I connect to a variety of virtual private networks for clients whom I manage IT systems. When I connect to their virtual private networks via devices Sonicwall TZ in my home office, the first always uptight attem

  • Shake accelerometer Flash trigger

    I did experiments with the accelerometer class in Flash CS5 and made a soft simple test of a ball that moves according to the inclination of the device (tested in Adobe Device Central). What I want to do now is to detect a shake to trigger a method.