Difference in using the same component made in mxml or action-script

Hi,
I made a sample project to show a kind of bug in the SuperTabNavigator component of FlexLib
In this sample you can see that using the same component (made in both mxml or action-script) can make a difference
I'm just wondering why ?
Thanks
Here is what i've posted :
What steps will reproduce the problem?
1. Create a button to dynamically add new tab with icon on a SuperTabNavigator
2. Click on this button to add new tabs
What is the expected output?
- The expected output is tabs added without abnormal behavior
What do you see instead?
- Every time a new tab is created the one who had the focus has its content
(icon + label) moving from the top-left of the tab to its original position
Please provide any additional information below.
Configuration:
- Flex Builder 3 in Eclipse
- FlexLib 2.3
Sample:
(see attached file)
There is two type of tab, one in action-script and one in mxml
They both are equal
- Adding a new action-script tab to SuperTabNavigator works fine
- Adding the same tab but an mxml one doesn't
- Adding a new action-script or mxml tab to TabNavigator works fine
-> meanings that the issue comes with SuperTabNavigator
- Adding a new mxml tab to both SuperTabNavigator and TabNavigator at the
same time makes TabNavigator to get the same bad behavior
Remarks:
- Tried everything but i'm really stuck
- Weirdly, removing the PopUpButton correct the issue
- In the same way if you keep adding action-script tab it automatically scroll to the
last tab. And if you do the same with mxml tab then it add the tab at the end and
scroll to the first one.
=> what could be the difference between using action-script or mxml object ?

Here is one possible solution:
You can use the ExternalInterface (
http://livedocs.macromedia.com/flex/2/langref/flash/external/ExternalInterface.html)
class to communicate with JavaScript. JavaScript can then popup the
media player very easily like this:
http://www.webreference.com/programming/javascript/jf/column5/index.html
The documentation on the ExternalInterface class has a nice
example (in the bottom of the page) on how to communicate with
JavaScript in a browser. Hope this helps,
-george

Similar Messages

  • How to use the same component in different applications

    Hi All,
    I need to use the same component in different applications. i.e In opportunity, Quotation & Promotion.
    The Search help view in the component PRD01QR should be used in all these components but with different search criteria.
    With help of the DO_determine_configuration, different view configurations are possible but Different search criteria is not possible.
    for Eg. search parameter without DDLB, F4 options in another components.
    How can I control the behavior of the search view in different applications with restricting the field properties?
    Is it possible to find out where and in which component these search_help_search component is used?

    Hi Harry,
    Is it possible to find out where and in which component these search_help_search component is used?
    ans: I am giving an Example for your question go through that u might get clear about this.
    Ex: BT115IT_SLSO  sales order component
    below screen they component usage using for populate the product search component.
    please let me know any help required .
    Regards,
    vishwa.

  • Can use the same panel in tabs ?

    Hi ,
    I have a tabbed pane which contains 3 tabs. Each tab contains the same component.
    Is it possible to use the same component in all tabs. For eg
    myTab.add("First Tab" , panel1);
    myTab.add("Second Tab" , panel1);
    myTab.add("Third Tab" , panel1);I tried this but I can see only the last tab. rest of the tabs are invisible.
    Can any one help me in this ?
    bye for now
    sat

    Is there anyway to reuse the same components in all tabs I think
    a component can only have one parent,
    pretty much sums it up.
    The size of the tabbed pane is determined by the size of the largest tab. If you can't build all the tabs up front with the proper components then how is the tabbed pane going to determine its preferred size.
    The Model of the components can be shared. For example:
    JTextField textField1 = new JTextField();
    JTextField textField2 = new JTextField(textField1.getDocument());
    Now the component can be added to different tabs but and text added will be displayed in both components because they share the same model.

  • I purchased a song through iTunes on my MacBook which I have owned for years using the same Apple ID and all of the sudden I am not authorized to listen to this song only? Why? How do I fix it cause it's making me very mad...

    Just purchased a song through iTunes on my MacBook which I have owned for years using the same Apple ID and all of the sudden I am not authorized to listen to this song only? Why? How do I fix it cause it's making me very mad...

    Hi E_WM7,
    Welcome to Apple Support Communities!
    Take a look at the article linked below, it provides suggestions that may be able to resolve the authorization issue.
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/ts1389
    -Jason

  • Is it possible to have 2 different output config XML files and index the data into 2 endeca apps using the same indexing component ProductCatalogSimpleIndexingAdmin

    Hi ,
    We have a catalog that defines 2 types of products (they have too many different properties), so wanted to keep them on two different MDEX engines and serve the applications requests. Here DB catalog and front end ATG application is same for both the MDEX instances.
    Is it possible to have 2 different output config XML files and index the data into 2 endeca apps using the same indexing component ProductCatalogSimpleIndexingAdmin?
    Thanks
    Dev

    Hi, also have had some problem some monthes ago - I created separete component ProductCatalogSimpleIndexingAdminSecond. After that one of my colleage gave me some advice:
    The creating separate component like ProductCatalogSimpleIndexingAdmin for the second IOC is possible way for resolving your situation. But I afraid that this way will be required creating mane duplicates for already existed components.
    In my opinion the better way is the following:
    starting from AssemblerApplicationConfiguration and ApplicationConfiguration component. It contains details for connecting between ATG and Endeca. Of course you should configure different components for different Endeca Apps.
    After that:
    Find all components that uses AssemblerApplicationConfiguration and ApplicationConfiguration. Customize these components for using one or another  *Configuration component depending on what index works. (many variants released it: the most simple global custom component with flag.)
    Then customize the existed ProductCatalogSimpleIndexingAdmin. Using one or another IOC  and setting the flag in global custom component when index started. You can add some methods into your custom ProductCatalogSimpleIndexingAdmin like:
    Execute baseline index for both IOC (one by one)
    Execute baseline for IOC 1
    Execute baseline for IOC 2.
    Note: you should be afraid about incremental (partial) index in this configuration. But resolving conflicts in incremental index should be done after full implementation these changes.
    Regards

  • What is the difference in execution time between a program written in C language and the same program made with LabView?

    what is the difference in execution time between a program written in C language and the same program made with LabView?

    Hi Pepe
    You cannot say which is faster, the LV or the C programm. The only way to be sure is to program in both environments and to check than. Check this for some benchmark examples:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/DC9B6DD177D91D6286256C9400733D7F?OpenDocument&node=200059
    Luca
    Regards,
    Luca

  • HT201272 I have always had and used the same Apple ID, so where are the rest of the songs I bought from itunes? I've bought at least 400 songs and I only am being able to download 178. Where are the rest of my purchases?!

    I have always had and used the same Apple ID. I have changed credit card information on my Apple ID account several times though. Does that make a difference when downloading past purchases? I'm very angry at Apple and Itunes because I have been using itunes since 05/2005 and I do not have even close to the amount of songs and albums that I have purchased from itunes. If the credit card info does make a difference even though the account is the same one then itunes needs to make sure to notify users of this because I am not the only one who is wondering this same thing. I have numerous friends who i've talked to about this and they say the same thing, that they too have songs purchased in the past that have disappeared when trying to download past purchased items. It should not make a difference. $12 is $12. Especially since I have ALWAYS used the same account. If itunes does not change their ways, I will not be purchasing songs or anything else for that matter from them ever again. I will go back to buying CDs where I KNOW that it will always be with me and I don't have to deal with this. I will also make sure to find a better more reliable source to download music from and will make sure everyone I know and come in contact with knows what it is and how much better it is than itunes. There should be no experation date on the music I PURCHASE, nor should there be any other little loop holes that allow itunes to rob us of rightfully purchased products. What's the deal itunes?? 

    mannyace wrote:
    Thanks for the response.
    So I basically won't run into any trouble? I
    There should be no issues. Its designed to work like that.  You don't change Apple IDs just because you get a new device.
    mannyace wrote:
    Thanks for the response.
    Is there any chance that the phones can fall out of sync?
    Unlikely. But nothing is impossible.   Though I don;t see how that would happen. As long as both are signed into the Same Apple ID / iCloud Account they will be N'Sync. (Bad Joke)
    mannyace wrote:
    Thanks for the response.
    If I get a message or buy an app or take a photo on the iPhone 5, how do I get those things onto the iPhone 6?
    If you buy an App, you have 2 ways to get it to the iPhone6: If Automatic Downloads is enabled in Settings->iTunes & App Store, it will automatically download to the iPhone 6 when you buy it on the 5 and vice versa if you buy it on the 6, it will download to the 5.
    Alternatively, you can simply go to the App Store App->Updates->Purchased and look for the App there and download it. Purchased Apps will not require payment again. i.e They'll be free to download to the iPhone 6 once purchased.
    SMS Messages will sync over using Continuity as long as they are on the same Wifi network. Otherwise, restoring the iPhone 5 backup to the iPhone 6 will transfer all messages received up until the backup was made onto the iPhone 6.
    Images, can be transferred either through Photo Stream
    My Photo Stream FAQ - Apple Support
    Or any Cloud service you want such as Dropbox, or One Drive.
    mannyace wrote:
    Also, something i forgot to ask initially: Should I update the iPhone 5 to iOS 8 first or does that not matter?
    If you want the Continuity features as explained above you need to update the iPhone 5 to iOS 8. Otherwise its not all that important.

  • How to use the same apple id on two different iphones with different sync?

    Hi all,
    I own an iPhone 4s for personal use. Soon my company is going to give me a business phone and I can choose to have another iPhone. I'd love it but I don't know if what I wanna do is possible.
    Let's say I will have iPhone P (personal) and iPhone B (business) and Apple ID MyID.
    At the moment on iPhone P with account MyID I have application App1, App2, ... App9, I have contacts Cont1, Cont2, ...Cont9, I have songs Song1, Song2, ... Song9. All these are synced on my personal PC via iTunes and stored in the iCloud.
    When I'll get iPhone B I'd love to be able to use on it my Apple ID MyID and to sync it with my business PC (so NOT the same one I use for iPhone P).
    The configuration I'd love to have would be the following.
    iPhone P
    - Applications: App1, App2, App3, App8, App9
    - Contacts: Cont1, Cont2, ... Cont9
    - Songs: Song1, Song2, ... Song9
    iPhone B
    - Applications: App4, App5,App6, App7, App8, App9, App10 etc.
    - Contacts: Cont1, Cont2, Cont10, Cont11, ..., Cont20
    - Songs: Song1, Song2, Song10, Song11, ... Song20
    So will it be possible using the same Apple ID MyID on both iPhones to have this configuration? Some apps, contacts and songs in common and some differents?
    If so, how should I configure the two iPhones and the two PCs?
    Kind regards.

    If you use the same Apple ID for iCloud on each device, yes. However, you can use the same Apple ID for iTunes content on each device, but different Apple ID's for iCloud, iMessage, FaceTime, etc., on each device. That way, you can have whatever iTunes content you want on each phone, but keep all of the other data separate. You can create another Apple ID here:
    https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/wa/createAppleId?loca lang=en_US
    Must be a verified email address.

  • How can I have use the same div ID multiple times on the same page?

    Okay so a problem I encounter a lot is that often times I want to use the same div ID several times on the same page. An example of this is when I'm creating table like designs.
    Let's say for instance I create a div ID called 'product-container'. I want to use 'product-container' multiple times on the same page but if I do this it is improper XHTML and will throw errors in any XHTML validator (you are only allowed to use a div ID once on any XHTML page in order for it to be standards compliant).
    Now the first option is that I could define 'product-container' in my CSS style sheet multiple times by doing something like this...
    #product-container {
         width: 300px;
    #product-container-2 {
         width: 300px;
    #product-container-3 {
         width: 300px;
    #product-container-4 {
         width: 300px;
    What you will see there however is that it seems pointless to define the same ID numerous times over (just adding a number on the end) when each ID is the exact same thing and has the exact same attributes.
    Now what I have noticed is that there are some sites out there who manage to have the same ID appear several times in the code but add a number to it just like above. The difference is that they only have one definition for 'product-cointainer' in their CSS document but in their actual XHTML code they have IDs for 'product-container' but with numbers on the end like 2,3,4,5, etc. It's almost as if JavaScript or some other code is automatically appending a number on the end of the ID so the validator won't consider the markup to be invalid, but yet it knows that it's using the same 'product-container' style that is contained in the CSS style sheet.
    I hope I explained this correctly. I'm just hoping to find a way that I can put the same div ID on a page multiple times without having to define it over and over again in my CSS.
    Any help is much appreciated!

    Because it seems like by using a class you can't make this position as 
    well as you can by using an ID. Am I wrong?
    An ID name can be used only one time per page.  A class name can be used multiple times per page.
    .product {
    width: 300px;
    text-align:left;
    color: #FF0000
    border: 2px solid #666;
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • HT1918 How does one organise the apple ID so that one uses the same email address to have an account on both the UL and Belgian itunes stores?

    I have in the past created an Apple ID for use with the UK itunes store, because I want to read in English.  If I sign in it seems that this ID will only allow me to purchase from the UK store.  But I live in Belgium, so I can't download from the UK store.  So I tried to create an apple ID for the Belgian itunes store.  But I want to use the same email address as I used for the first apple ID I made (because I'm fed up of having to remember which email address I used for which account).  When I tried this, I just get a message saying that the email address is already in use for another account (which I know, because it's me who made that account).  Does anyone have a workaround for this?
    cheers
    Andrew

    I have tried again using the same password. and it still doesn't work.
    I'm presuming you went ahead and set up a new Apple ID, yes? Using the same password in more than one Apple ID has worked for me in the past, but I haven't tried it in a while so the tightened security may have changed that. You could use the same password but add "-UK" and "-BE", or something like that, to make it easier to remember.
    I understand what you mean about losing the ability to deal with UK purchased stuff, but this is becoming so inconvenient that I do want to delete that UK apple ID account.  I have looked everywhere I can think of on the apple website (apple id, itunes, support etc) and I can't find a link/eplanation/contact point that deals with deleting apple ID and itune store accounts.  Surely this must be possible?
    It's possible, but Apple is very reluctant to do it, and it's not something a user can do on their own. It would be better to just stop using the UK account rather than trying to get it deleted. Just remove your payment information and there should be little reason to have the account deleted. If you really want to try, though, you'll need to send a message to iTunes support specifying that you want the account cancelled.
    On a completely different matter, I have bought my son an ipod touch.  But since he is younger than 13 years old, how does one go about using the itunes store to get music onto his ipod touch?
    You would need to buy tracks for him; he's too young to have his own iTunes Store account. To control what gets synched to his iPod, this should help:
    http://support.apple.com/kb/HT1495
    Regards.

  • TS3988 Can 2 people use the same icloud?

    Need help badly, such a mess! My son is under my Itunes acct-I have an Iphone 4s, he has an Iphone 4. Somehow his phone is on the ICloud with our Apple ID (which is my gmail address) & pw. He also has an @me.com-set up by me trying to seperate our phones (mistake now I know!) Our ICloud Backup Storage is a mess-we use 1 laptop for Itunes and now ICloud--his phone updated & all my contacts went to his phone-he erased my people off his phone b/4 checking with my phone-now ALL my contacts are lost, only his remain on both our phones! Even worse now I cannot text him--I "think" his phone is seeing my phone as his now, if that makes any sense at all! HELP!

    Thank you so much for your answer! Yes, this is my 1st time to the community too, again thank you! Okay, here's the sequence that 'may' help explain; 1st- My son got an Iphone 4 & wanted to buy songs, etc., so I added his phone to my Itunes acct..--he consequently signs on under my email address (my Apple ID) & my PW. No problem then, it had/has listed ex. Mom's Iphone & Son's Iphone (mine is a 4s, don't think that makes a difference- except in telling u that Siri doesn't work properly now either & refers to my son's name now instead of mine!) As far as I can tell, the real problems began with the ICloud settings on our Iphones--meaning the settings on 'where' to back our phone's- ICloud or to the Laptop (both phones back up to the same laptop.) It's so complicated I can hardly explain it, so sorry if I'm bouncing around! I did not mean to or rather it was not an intentional decision to use the same ICloud, however since we share the same comp. and Itunes account, and basically passwords--it somehow happened. I don't know how to undo this mess! Last night I went to ICloud.com & was able to sign on with my son's @me.com user ID & our Itunes PW (aka-Apple ID.) It really didn't do anything except show me Iphone features, ex. Contacts, Ibook, etc.. I did 'not' see a place where I could change any settings, like to possibly change his Apple ID, or pw...that's all I can think of to change? And even with that I'm not sure how to do that...he's 14, a minor--so he has to be under my settings to a degree. Don't mind at all having seperate ID's, but we do share "some" music and app's for example. Is any of this making sense or even partially explaining my problems? Thank you in advance!

  • How do I separate 3 different devices all using the same apple ID

    HELP PLEASE!! My wife has a macbook which is about 5 years old. We used our only email address at that time as our apple ID. Since then we have bought her an iphone 4 and registered it with the same apple ID. Then a few months later I made the jump from my blackberry to an iphone 4 and used the same apple id. All these devices are now tethered to the same apple id as well as our family itunes account. So, we have a family itunes account, an older macbook and 2 iphone 4's all with the same apple id. With me so far? Now, everything was cool until the iOS update came out for our 2 iphones and came with the new icloud app. When my wife and I set up our icloud accounts everything that was on her phone showed up on mine and everything that was on mine showed up on hers. How do I change the apple id's on her phone and computer, keep the apple id we already have on my phone and continue to share the itunes account? An important note here is that the apple id's are my email address. HELP!!!!

    OK this might help you
    you need both iphones and the mac next open itunes and click on itunes prefrences now you will need to go to devices and erase all iphone back ups
    next plug the phone with your info to the mac and rename that iphone with your name and back it up, After the back up safely remove it
    next plug the phone with your wifes info into the mac and follow the same steps.
    after the back up is done restore your wifes iphone and when ask to restore as a new iphone you need to scroll down to her name and click on it then do the same with your phone
    this will put all info into the corresponding phones

  • If two people use one computer, but we have separte itunes accounts, Apple ID, and icloud will my apps I get be stored in their account too since we are using the same computer?

    If two people share the same computer, but have separate itunes account, Apple ID, and icloud and one of them downloads an app will it also go into the other persons account since y'all use the same computer

    If you  have separate user accounts on the computer, then your downloaded apps are stored in your iTunes Library. See the following for dealing with having multiple users on the same computer: How to use multiple iPhone, iPad, or iPod devices with one computer.
    Using More than One iDevice on the Same Computer
    This applies mainly to couples who are adding another device and do not want their email, messages, etc. being duplicated on both devices. To begin read: How to use multiple iPhone, iPad, or iPod devices with one computer. You need to establish a separate Apple ID and password for whomever will use the new iDevice. See Apple - My Apple ID and Frequently asked questions about Apple ID. The easiest way is to do this on the computer using iTunes: iTunes- How to set up an Apple ID within iTunes.
    On the computer create a new user account for the person with the new iDevice. This will be the user account that person will always use. He/She will no longer use the other user account. This way that person will have a separate iTunes Library
    Start by transferring the new device(s) to a new account along with all your data.  Save any photo stream photos that you want to keep to your camera roll (unless they are already in the camera roll) by opening your Photos app, tap on Albums icon at the bottom. Now, tap on My Photo Stream album; tap Select; tap on the photos you want to select;, tap the share icon (box with upward facing arrow) in the lower left corner; then tap Save to Camera Roll.
    If you are syncing notes with iCloud that you want to keep then you need to open each of your notes and email them to yourself. Later you can copy and paste the text into new notes created in your new account.
    Tap on Settings > iCloud > Delete Account (only deletes it from this device, not from iCloud; the person keeping the current account will not be affected,) provide the password to turn off Find My Phone and choose Keep on My iDevice when prompted.  Sign in with a different Apple ID to create your new account. Choose Merge to upload your data.
    Once you are on separate accounts, you can each go to icloud.com and delete the other person's data from your account.
    Note: The essence of the above was created by user, randers4. I
    have made substantial changes to improve readability and syntax.

  • Can I use the same Apple ID for multiple devices

    Can I use the same Apple ID for multiple devices?

    Yes. Up to five devices can be authorized on a single computer using the same Apple ID. You can also use the same Apple ID on multiple devices is they are all going to use the same iTunes Library by the same user. But it's ill-advised if multiple users are involved who wish to keep their devices separate from the devices belonging to other users.
    How to use multiple iPhone, iPad, or iPod devices with one computer
    Using More than One iDevice on the Same Computer
    This applies mainly to couples who are adding another device and do not want their email, messages, etc. being duplicated on both devices. To begin read: How to use multiple iPhone, iPad, or iPod devices with one computer. You need to establish a separate Apple ID and password for whomever will use the new iDevice. See Apple - My Apple ID and Frequently asked questions about Apple ID. The easiest way is to do this on the computer using iTunes: iTunes- How to set up an Apple ID within iTunes.
    On the computer create a new user account for the person with the new iDevice. This will be the user account that person will always use. He/She will no longer use the other user account. This way that person will have a separate iTunes Library
    Start by transferring the new device(s) to a new account along with all your data.  Save any photo stream photos that you want to keep to your camera roll (unless they are already in the camera roll) by opening your Photos app, tap on Albums icon at the bottom. Now, tap on My Photo Stream album; tap Select; tap on the photos you want to select;, tap the share icon (box with upward facing arrow) in the lower left corner; then tap Save to Camera Roll.
    If you are syncing notes with iCloud that you want to keep then you need to open each of your notes and email them to yourself. Later you can copy and paste the text into new notes created in your new account.
    Tap on Settings > iCloud > Delete Account (only deletes it from this device, not from iCloud; the person keeping the current account will not be affected,) provide the password to turn off Find My Phone and choose Keep on My iDevice when prompted.  Sign in with a different Apple ID to create your new account. Choose Merge to upload your data.
    Once you are on separate accounts, you can each go to icloud.com and delete the other person's data from your account.
    Note: The essence of the above was created by user, randers4. I
    have made substantial changes to improve readability and syntax.

  • Is it possible to change the Apple id on one device while keeping all purchases and apps? Also, several other devices are using the same apple Id.

    There are about 3 devices that use the same apple id. I would like to take my iphone and make my own apple id but I don't want to lose all the purchases that were made on the original apple id

    You can sign out and sign in with the new ID. The old purchases wont go away.

Maybe you are looking for

  • How I got SMTP on my iPhone to work

    My solutions may or may not work for you, but here goes: My wife's new iPhone would not send or receive mail from her mobile me account and would not send from an ISP mail account. I managed to fix both problems: 1. Re: mobile me mail. Her account is

  • Help me in this Task!

    Hi Experts, I got an Assignment on Reports Description : "create an exceptional report to get all the orders that were settled during month end close" I didnt understand this. Can any one help me in this regard.

  • Inbox message panel is blank, but I know that messages have been received

    I am able to send messages, and receive them, but I can't see the received messages. My POP3 inbox message panel is blank yet the Inbox indicator at the left says 10 messages. I can hear new messages come in, but I can't view them. I repaired permiss

  • Contribute won't open

    I have been using contribute CS3 on two networked Apple computers. All was fine until the other day when suddenly contribute will not open on either computer (I get the first screen, a spinning ball and then it just closes). I suspect it's because I

  • A grey photo from nowhere?!

    Hey, you guys, before you read this, this is no joke! I had took a video of my cousin on the vine app, I posted it and then went to the camera roll to check the vid. there was also a mostly grey pic that I didn't take! What's up with my iPod?! This h