Why do we put Actionscript on top in .mxml files?

Hi,
Developing projects in Flex I wondered why Flex's default code structure and standard for .mxml components is to put the <mx:Script> or now <fx:Script> above all other <mx:components> or <s:components>. Recently I decided in a project to put the <mx:components> on top of the actionscript <mx:Script> tag, so when I open a file I see it's structure first and then can dive in the code. I had to refactore hundreds of files but it was worth the effort, because I don't have to scroll down anymore to know what a component is doing and I can quickly control click to another component I realy need to edit. In Flash Catalyst I see that default code is again on top of the components. I think it is unpractically.
Anyone has experience with this?
Thank you!
Olivier de Jonge

80+ isn't too old!
I used to have a dear friend who was in her 80s and she became quite proficient with the her iMac.  When she had problems I would go over and help her (and she fed me - yum!)
She was an accomplished sewer and she told me that when her sewing machine acted up she would threaten it until it behaved again.  So we just adopted that attitude with her iMac and she did really well.
So you ask as many questions as you like in these forums, and perhaps add in that you need the basics explained, and we will all help you.
One point though, you originally posted your question to the iPad forum (and robdrage answered as if you were talking about an iPad).  I asked the Hosts to move your question to the iMac forum.  In the future either post to this iMac forum, or to the Mavericks forum.
Good Luck!

Similar Messages

  • Cant put image on top of another image

    Hi,
    I'm using keynote 09 with the 'Blueprint' theme. I'm attempting to edit the master slides by putting a company logo in the corner of each slide. This works fine on slides without images, but on slides with images, keynote will not let me put my logo over the image placeholder. The placeholder image always blocks my logo, even when I choose 'Send backward' on the place holder.
    Is there a way around this?
    thanks

    Sorry, I was typing fast.
    The problem is that you cannot put images above media placeholders on master slides. One suggestion was to make my image (my logo comprised mostly of white text) a media placeholder as well, therefore I could edit the master slide and layer my new media placeholder (logo) above the default-already-existing placeholder (some architectural image in the blueprint theme).
    This works but has an additional problem.
    Since my logo is white text, I wanted for it to stand out from the picture beneath it. As I sometimes do, I thought I should place my white-text-logo on top of a small black rounded rectangle with transparency (like a cartouche).
    I like to do that because it makes my logo legible, while still showing the picture through the transparency. INdeed, this is easy to do if you are only dealing with pictures and shapes (and not the magical placeholder versions of them)
    You can make the shape a text placeholder, and you can make the image (logo) a media placeholder, but you can't group the two together as a unit. And if you group them first, then you cannot make your group (shape+image-logo) a placeholder at all, so you then cannot layer it on top of the default image place holders.
    I was saying that I'd have to open my logo in photoshop and put it on top of a 'cartouche' and then import that modified image, and THEN make it a media placeholder.
    But obviously it would be easier if keynote just let us properly layer elements as you would expect it to work.
    I mean, setting images aside, why can't I create a shape and put it in front of a media placeholder without making the shape a text placeholder?
    Of course I can edit my logo and add dropshadow or glow to make it stand out, but even then, I would need to make it a placeholder before keynote would let me layer on top of another placeholder. And if I'm going through the trouble of using photoshop to add shadows or glows, I might as well just put the image on top of a cartouche as originally desired.

  • Why Must I put in Credit / Debit Card Info, To Load mp3 songs on my iPhone?

    I am curious as to why I "MUST" put in my
    Credit Card / Debit Card information if I want
    to download some basic games, use iTunes on
    my PC-Computer to copy mp3 files to my 'new-used'
    iPhone 3G phone, and when I validate more
    information it comes back to "Please Provide
    Credit Card / Debit Card Information" ect.. There is
    no alternative means to simply load mp3 songs to
    your iPhone w/out having to put in sensitive debit
    card / credit card information?
    iTunes can't have a feature, where you pick the songs
    you want to load on your iPhone from your PC or
    Mac Book, for FREE? I guess.. I'll do without..
    as this seriously hurts my feelings. *SIGH*
    It would be nice and wonderful, iTunes can allow you
    to load as many songs as possible from your PC-Desktop,
    to your iPhone for FREE, without providing any sensitive
    credit card / debit card information, without the FEAR of
    being charged, and disputing with Credit Card Companies,
    and disputing with Apple billing ect.
    I think I'll stick to my old phone for my music files.
    Or I hope I find some wealthy Jewish sugar mamas, or
    Jewish sugar cougars that own 90% corporate stock into
    Apple, Microsoft, and other music sharing software that
    scans for viruses and malware ect. To help pay the prices
    or Apple charge my debit / credit card for loading songs
    onto my prepaid, brand-new-used, 3G iPhone.
    I am not making sense, because the terms of agreements
    I read don't really make sense to me?
    Shalom Y'all
    Michael D. Lucas
    76531

    If you download anything from the iTunes & App Store, with your existing Apple ID, you need to link a valid credit card info to your Apple ID.
    You won't be charged for free games or syncing your music from computer.
    If you do not want to put your credit card info in, use iTunes Gift cards which you can buy nearly everywhere.

  • Can I put only the top image of a stack in a Mobile Album?

    I have an album that contains stacks and I would like to put only the top images of these stacks in a Mobile Album.  Is this possible? 
    I have tried to make a new album and only put the top images in this new album without sucess.  Is it possible to have a stack of images in one album and only the top image in another ablum?
    I hope someone knows about this
    Hans Brodin

    Hi Surendra,
    My target is to find a convenient way to transfer my best photos only to my iPad
    By using stacks for similar photo and putting my best shot on top I reduce the number of images displayed in the organizer.  A typical stack contains of 8 shots.  
    Then I put my best stacks in an album.  By using the Slide Show in PE I have a convenient way to display only my best shot and tha's OK for my computer were I have a lot of disc space.
    But on my iPad the size of memory is limited and it also takes some time to transfer a huge number of images so now I want to find a convenient way of tranfering only the top image of each stack. If I could have a separate album containing only the top images from each stack the task would have been easy.
    Now this is not possible so now I hope there is another solution than acually making a separate copy (a new file) of each top image and put these copies in a separate album.   This will of course work but it will end up in having two identical images showing up in the organizer and so I do not really like this idea.
    I hope I have managed to describe my intention and do you have an idea for a workaround or do I need to make separate copies?
    Thanks a lot
    Hans

  • Why wen I put in my password I get a message 'request timed out'

    Why wen I put in my password I get a message 'request timed out'

    Hi there Nechama B.,
    You may find the troubleshooting steps in the article below helpful.
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/ts3970
    -Griff W. 

  • Why do we put similar infoobjects into single dimension.

    Why do we put similar infoobjects(Char ex: 0material, 0matl_type, 0matl_group, 0matl_cat,  0mat_plant) into single dimension(MATERIAL DIMENSION). and other similar like(0CUSTOMER, 0SHIP_STCK, 0SOLD_TO, 0DIVISION, ZORD_MAT) into single dimension(CUSTOMER DIMENSION), What will happen if i put all these infoobjects into single Dimension, Can some one answer me in the system prospect, data base prospect  as well as performace point of view or may in general.
    Points will be given.............. thats what u definitely deserve for a right answer.

    Santosh,
    This is an important thing while deciding upon the dimensions. Its not the similar things we are putting together but based on the data realtion and cardinality we put the chars in a dimension. If dimensions are not properly designed the tables size increases drastically and lead to poor performance. Taking an example the relation between the chars in a dimension should be 1:m and not n:m. A material can have one material type and belons to one materila group for a plant is the relation which is a 1:n relation. Chars with high cardinality are put in separate dimensions instead of grouping with other chars.
    The grouping of classification groups (characteristics) whose content is logically connected, under a single generic term. If the dimension contains a characteristic whose value already uniquely determines the values of all other characteristics from a business-orientated viewpoint, then the dimension is named after this characteristic.

  • Why have BT put a backdoor in the 8.1.H.J firmware...

    Hi all. Some know me here because I worked out how to unlock the Home Hub 1.5 and 2 so that they can be recycled and used on non BT connections.
    Some don't like me because I talk straight, which is what I am going to do now.
    This is a question for the BT staff.
    Would you like to explain to myself and the other good people out there in Home Hub land the reason why you have put in a back door so you can access any router with firmware version 8.1.H.J without the owner's express permission?
    Before you start your denials I wish to state my case and submit my evidence.
    Exhibit A: Firewall: In the default firewall files this line has been added:
    rule add chain=forward_custom name=BTAgent srcintf=wan dstintf=lan dstip=192.168.1.253 serv=BTAgent_dst state=enabled action=accept
    As most Home Hub nerds will attest this is a serious hole in the firewall which allows all traffic from the wan interface (internet) to the lan interface ip 192.168.1.253 which is the secondary IP address of the Home Hub.
    In layman's terms this allows BT access whenever they want and to whatever they want does it not?
    Exhibit B: Bt's added files
    The files above have been extracted from my own 8.1.H.J firmware please feel free to download them and examine them with text and hex file readers. Actually I encourage you to do so.
    The files on the link above are the added extra BTAgent files that you have felt would some way benfit us by adding. They do contain access keys which means the hole in the firewall you created in Exhibit A does have a token measure of security, but let's be honest here what the hell are you doing in my router without my permission in the first place?
    I am no linux expert by any means, however even I can see that you have added a firmware update routine as well as a writeable directory in the user accessable flash memory and the necessary instructions for uploading and executing your own plugins (software) on the router!
    With this in mind I feel you have performed a serious breach of privacy and endangered your customers online safety by knowingly creating flaws in your equipment's online security. This being namely the hole in the firewall mentioned in Exhibit A
    Then there is the fact you can upload and run whatever plugins you like on my or anyone else's router that you deem fit. That could be any monitoring software, click tracking, PHORM, or whatever you wish.
    This I feel is in breach of trust between provider and customer as you can use anyone's router for your own purposes whenever you like and without anyone's, including the router owner's knowledge. Surely this cannot be legal?
    You can argue that this is just a new update system, however the old CWMP/ACS system worked just fine for that last goodness knows how long and how do you explain the libplugins.so executable?
    I await your reply.
    Erlidoch 'm namyn ewyllysi erioed arhosa 'm

    This is deeply disturbing, and recalls the recent thread on the old Beta BTVision forums that suggest a similar backdoor manipulation of the BTVision box, allowing viewing behaviour to be monitored and intrusive and disruptive targeted adverts to be shown; that thread had nearly 3000 views in a week!
    I have started a Privacy and Security thread to suggest that matters of this nature are aired in one location, so if you, psiDOC, or anyone else agrees, feel free to pop over there and add your support for the idea.
    Pash
    Value Added Guest (Inspiring Not Aspiring)
    Rate a post if you like it! - just click the star under the user's name on the left. (N.B. ratings facility no longer available in Forum Help and Suggestions; nor is it available in the Lounge)

  • Why cant i put a song as my ringtone

    why cant i put a regular song as my ringtone on my iphone 5?

    You can do it, see here: https://discussions.apple.com/message/22037410#22037410

  • Can I put buttons on top of a slideshow?

    My client has asked the latest cover of their magazine to have a slow crossfade of about 5 images as the background, with elements such as logos & links to articles over the top.
    I thought this would be easy since the Slideshow » Crossfade feature is simple to control, but I run into trouble as soon as I put anything on top of it—the slideshow appears on top of everything else in the preview, even if it's an interactive element.
    Am I missing a step somewhere? I feel like this should be a relatively simple thing to do—but it's been about 6 months since my last DPS project so I'm a little rusty, and a lot has been updated in the meantime.
    My other option would be to do the crossfade in Photoshop and import as an image sequence, but I suspect I'd run into the same problem (correct me if I'm wrong!).
    Or I could do the animation in Edge Animate and import as an HTML object. Would either of those options give me better results? They seem a little more complex for essentially the same end product.

    Yep, they're buttons.
    So far I've only added one button, for initial testing. It's the client's logo as a placed Illustrator file. In Buttons and Forms, it's type is a Button, I've named it and On Release or Tap it has a Go To URL action. It has no rollover or click states and it is not Hidden Until Triggered. I feel like I'm missing a step somewhere there...
    Putting the buttons into each state of the MSO works fine, but is less than ideal since they'll change many times before the final version. Updating 5 versions of the same thing each time will get a bit tedious! That's the only way I can get it to work for now though, so I'll keep going like that.
    Adding a text frame with scrollable content works fine - it appears on top of the slideshow.
    Adding another slideshow on top works as well... but my buttons don't!
    EDIT: And yes, I mean in Adobe Content Viewer. It displays the same on the desktop version and on my iPad.
    Message was edited by: Luke-CYB

  • Putting text on top of a custom shape

    If I put text on top of a custom shape I've added, the text doesn't show.   I know it's there because if I change the opacity of the "shape" I can see the text is in fact there.   How do I force the text to be on top of the customer shape?   I'm using the shape as a "thought bubble" so one would think this is a common thing to do.

    It's probably not because of the shape. First of all check your color square to be sure the text isn't the same color as the shape. Also, you may  need to make text very much larger in PSE than you normally would, because text size is dependent on the resolution of the image. A high resolution image can need really big text before you can easily see it. Don't be afraid to type in a much larger number than is available in the pulldown menu.

  • How to put flash as a table or cell background or put HTML elements on top of flash file?

    Hi Guys,
    Could anyone please suggest me that how to put flash file as a table or cell background. I want to design a website and want to put HTML elements like table, images, text on top of flash file. so its look like animation in background. please visit following websites for an example: http://www.gagudju-dreaming.com/ and http://disneyworld.disney.go.com/
    Please guide me ASAP, thanks a lot in advance.
    Nitz.

    Hi Nitz
    The first thing you must do is convert your layout from table based to css based, (tables are o/k for tabular data, but not layout) but if you have never used css for layout it may be a steep learning curve.
    My recommendation is to start with the following tutorial on converting a table based comp to a css layout -
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt1.html
    More info on using css is available here - http://www.adobe.com/devnet/dreamweaver/css.html.
    Once you have converted your site the 'procedure' for using swf's as a background, (does not work well with flv's, but can be done using html5 video without a skin, to a limited extent) is the same as having a background-image resize automatically to the full browser view-port. The best way to learn how to do this is to view the code on a page using the background-image technique, view the code on this page - http://www.pziecina.com/indexold.php.
    However, instead of having a fluid layout I would recommend using a fixed layout size to start with, as this overcomes many problems. I have uploaded a basic test page to illustrate the idea to - http://www.pziecina.com/test_ideas/swfbg_test.html. As I said the page must be resized in this example in order to see the effect, (so do not forget to resize the browser, even if it is only by 1px), but if you use a fixed size layout and your swf's size fits the desired area correctly the resize should not be required.
    PZ
    www.pziecina.com

  • Why they dont put IPAD and IMAC together?

    Just a crazy idea,
    i have been thinking for a while, why apple doesnt put the ipad and imac togheter?
    I mean, if they create a dock, where you have a keyboard and a standard mouse o trackpad, then, when you pluc your ipad, you can use it as a normal Imac, with its normal features. And when you plug it out, it will became a normal ipad, as we know it today. That would be the way to sell an ipad for all those people who doesnt buy it because it cant replace their laptop or pc.
    Aditionally it would need flash, usb access, and an option to plug it to a bigger screen (it can be thunderbolt), if you dont want the ipad screen size to work at home.
    To crazy?? i think it would be very easy for them to develop it.
    Best Regards,
    Juan Gartner

    The iPad has a crippled processor and very conservative system for long battery life and low heat that can't render most of the web, or do much of anything else like a full computer can.
    This is my Firefox on a MacBook Pro compared to a iPad and other like devices.
    And to add insult to injury, Safari on a Mac is about twice as better as Firefox.

  • About Final Cut ProX: why a red line appears at the top o a file imported into a New Event? then when I restarted the Project that files comes as "Missed files" How can i fix it?

    About Final Cut ProX: why a red line appears at the top o a file imported into a New Event? then when I restarted the Project that files comes as "Missed files" How can i fix it? Thank you very much.

    Where are you importing from – a camera or computer? If you are optimizing at import, make sure the background processes are completed. (Command-9)
    Russ

  • I'm using movie program how do get rid of background noise and put music over top of video

    I'm using movie program how do get rid of background noise and put music over top of video

    Niel,
    Thanks for your suggestion about using RCDefaultApp. I am hesitating to do this because it seems like I'd be installing still another piece of software to fix the original mistake---downloading Reader.
    About 20 years ago I maintained---with considerable handholding---UNIX systems of various sorts. Can you suggest how I might find the plist that seems to require changing?
    BTW, Preview is called whenever I open some random .pdf file. The problem appears when I want to get a file from the web. If the site permits a "download" I can get the file, but if I want to "view and print" the file, the evil dark-grey Adobe screen appears with the whirling black ball. Then Safari quits. I'm wondering if the reference to Reader is in a "cookie" sent from the website, when I first was installing Reader. Is this possible?

  • TS4293 why cant i put some clips into imovie ?

    why cant i put some clips into imovie ?

    What exactly do you mean? Are you taking clips out of an event and trying to put them into a project?

Maybe you are looking for