Flex beginner question

Hello,
I'm completely new to Flex and to programming in general. I
have some HTML/CSS experience, but not much. I want to start using
Flex and ActionScript from scratch. Am I starting off too advanced?
Should I learn other languages first? I'm a quick learner and I
have a BS in Math so I think I have pretty good logic skills. Any
thoughts? I have watched some Flex tutorials and have ordered a
book, but I figured I'd get some feedback from Flex guru's. Thanks
in advance,
Mark

If you're comfortable working with HTML source (not wysiwyg
editors) you should do reasonably well. Walking through the initial
tutorials will help a lot in getting you past the early learning
curve. I would also recommend the TotalTraining video tutorial from
James White, as that helped me get going much faster.

Similar Messages

  • Flex language questions should go in the General Discussion Forum

    This forum is intended for Flex Builder questions.
    Of course you can post wherever you like, but if you want
    help, go where the helpers are.
    Tracy

    can you define what goes where then?
    General discussion sounds like thoughts, comments, hopes and
    wishes.
    Builder 2, (meaning Flex Builder 2?), seems to be the only
    area for other Flex 2 questions.
    I don't mean to be wise here, but I personally don't
    understand what a "builder 2" question is if not those that deal
    with flex 2, such as those posted here. I want to post my questions
    where they should be so that I might find help, so maybe the forum
    labelling should be re-considered or better defined.

  • Beginner Question

    Hello all, hopefully I have posted this to the correct LiveCycle board!
    I'm new to Acrobat and LiveCycle in general. I'm working out of windows LiveCycle Designer 8.x  and my question is as follows....
    I'm working off of the "Quote" Form Template and what I am looking for is a way to make the rows of the Table expand as needed.  I will be converting this Template into a "Purchase Order" form, and there will be many occassions where I will need to increase the table rows - perhaps onto a second or even third page - due to the volume of different items I will be seeking prices on at a given time.
    Long story short I would like to take this "QUOTE" form template and make it such that if needed, I can expand the table size one row at a time, pushing the content beneath (Comments, subtotal, etc) onto the next page....
    Hoping I have explained my query well enough,  Could anyone provide me a solution or point me in the correct direction?
    Many thanks!

    As a followup, so as not to clog the board with numerous threads I have another beginner question
    For the sake of hypotheticals I am creating a dynamic PDF form.  This pdf is a Purchase Order Form, with a table in the Body that will expand/contract as the form user needs.  (EXA-  Default table size is 5 items, however user is creating an order for 12 items, he/she can increase the table rows to desired capactiy.) It will be a very simple layout. All data for the form will come from manual entry, no XML data binding going on.
    My new question is as follows:    Is there a way I can have this user's Adobe reader or Adobe acrobat software remember previous data entries, so that if 4 weeks after ordering widget X he/she needs to place another order for widget X, the software will autofill the table as he/she types into the table cell?
    This would be similar to how Excel will start to autofill if it recognizes a previously entered value from some other cell in the worksheet (workbook?)
    EXA-
    [NAME]   [MODEL]   [QTY]   [PRICE]
    Widget           A            433        $30.00
    Would it be possible for the software to notice that I'm typing the word "widget" somewhere after typing "wid" ???
    Many thanks for any and all followups, I'm a teenager trying to help out in my father's small business. They are in the darkages here and I'm doing my best to self teach.
    Thanks.

  • Beginner question: Can I apply one formula to all cells in a column?

    Hi,
    I'm new to spreadsheets, so apologies for asking what is probably a very simple question.
    I want to apply a formula that divides the values in one column (W) by values in another (AX) for a table containing 3000 rows, and outputs the result for each row into the appropriate cell in the new column I've created.
    Numbers 09 'help' hasn't helped to this point.
    Thanks in advance for any assistance.

    GeoBrett wrote:
    Numbers 09 'help' hasn't helped to this point.
    Besides Numbers '09 Help there are two other useful resources available in the Help menu: the Numbers '09 User Guide and iWork Formulas and Functions Help.
    For "Beginner questions," my first choice would be the User Guide. For the specific question you asked, a quick scan of the chapter on "Using Formulas and Functions" (pp 83-96) will provide some useful information. Start in the neighborhood of page 93.
    Regards,
    Barry

  • Beginner question regarding 32-bit mixing and mixdown workflow

    Hello
    I have a beginner question regarding 32-bit mixing and mixdown.
    If I edit some 16Bit, 44.1kHz Stereo WAV Files and put them into multi-track view to do crossfades, how should I do the mixdown?
    Audition shows me in multi-track view, that it is doing 32-Bit mixing.
    Can I just mixdown to 16Bit, 44.1kHz Stereo without any dithering (as the files are 16Bit, 44.1kHz Stereo to begin with), or will I lose quality that way?
    I will be performing a normalization to 96% to the mixdown and then split to tracks in Audition, as in the end I want to to have an audio CD.
    I guess I could mixdown to 32Bit, then normalize and in the end save back to 16Bit, 44.1kHz Stereo WAV (with dithering, I suppose?), but I want to avoid any unnecessary converting steps.
    Greetings

    Any time you do any processing on a 16bit file in 16 bit only it will degrade the audio slightly due to rounding of the calculations. Working in 32 bit floating point (Audition's default) takes account of all bits generated due to processing.
    So it is always best to work in 32 bit, even if your originals were 16, all the way through until the last stage of saving the files for CD burning. Any losses due to conversion will be insignificant against those due to working 16 bit.

  • Beginner question - how to efficiently check if a photo is part of the selection

    Dear all,
    Sorry for this beginner question, however I don't know how to solve it and I'm sure that there is a quick and easy answer to this:
    My target is to get all the "heads of stack" (photos with Position 1 in stacks) of the selection ("photos" below).
    for i, photo in ipairs( photos ) do
      local photoName = photo:getFormattedMetadata('fileName')
       if photo:getRawMetadata( 'isInStackInFolder' ) then
       --Photo is in a stack
            local photoHeadOfStack = photo:getRawMetadata('topOfStackInFolderContainingPhoto')
            local stackPos = photo:getRawMetadata( 'stackPositionInFolder' ) -- get the position in the stack
            local photoHeadName = photoHeadOfStack:getFormattedMetadata('fileName')
            app:logVerbose("Photo nb ^1, name ^2 is in a stack with the position ^3", i, photoName, stackPos)
            if stackPos == 1 then
            -- photo is master of the stack
                 stackTop[#stackTop+1]=photo
                 app:logVerbose("Photo ^1 is top of the stack ^2", photoName, #stackTop)
                 -- check if couple if correct
            elseif photos.photoHeadOfStack then
                 app:logVerbose("Photo ^1 is in a stack, but not on top. Top of the stack already selected", photoName)
            else
                 stackTop[#stackTop+1]=photoHeadOfStack
                 app:logVerbose("Photo ^1 is in a stack, but not on top. Top of the stack ^2 - ^3 ", photoName, #stackTop, photoHeadName)
            end
      end
    end
    In the if structure in the middle checking the Position in the stack, if the Position is not 1, I would like to check if the photo heading the stack ('photoHeadOfStack') is part of 'photos'. I tried 'elseif photos.photoHeadOfStack then' and 'elseif photos[photoHeadOfStack] then' but it doesn't work ->this elseif is never true even if 'photoHeadOfStack' is part of 'photos'.
    Is there anyway to have this check done without checking "manually" photos ?(via for example a for Loop)
    I'm sure that Lua proposes this, but I don't know how...
    I thank you for your Support!

        --[[ This code creates "stackTops", an array of LrPhotos that are the
        tops of all the stacks containing photos in the array
        "photos". ]]
    stackTopSet = {}
    for _, photo in ipairs (photos) do
        local stackTop = photo:getRawMetadata ("topOfStackInFolderContainingPhoto")
        if stackTop ~= nil then stackTopSet [stackTop] = true end
        end
    stackTops = {}
    for photo, _ in pairs (stackTopSet) do table.insert (stackTops, photo) end

  • Beginner Question: SA520 Admin access through WAN port

    Dear all,
    I've a beginner question regarding my brand new SA520: How can I configure the box so that I'm able to access the admin GUI not only through the LAN ports but also from the WAN ports?
    I tried already to allow inbound traffic to the firewall's internal IP address (not sure if done right, so) and granted the admin user access profile from WAN and LAN: I can access the box from the LAN but not from the WAN. Any ideas?
    Thanks,
    Eric
    PS: Yupp, I know that it's not a good idea to expose a FW admin GUI to the WAN - but this is only a lab environment

    Go to Administration -> Users.
    click on the 'Edit User Policies' 'Login' button.  It's there you can enable WAN access.

  • Beginner question - using pre for flexibility in text?

    Hi,
    Apologies for the beginner question, but I am struggling to work out whether it is more sensible to use <pre> in all my texts, as it seems more flexible.
    It seems that when I use <p> - paragraph - I can't use multiple space bars to align certain bits of text, but more disruptively I have gaps between text when I press Enter (I guess this defines the paragraph, but isn't always wanted).
    Well, basically, <pre> seems more flexible, but it behaves strangely sometimes. What do other people use?
    Many thanks!
    Ivan Reshetilov
    http://www.ivanreshetilov.co.uk

    Hi Ireshe, just a beginner like you.  Have never heard of <pre> tags, use <p> tags.  If you hit SHIFT enter after a sentence this puts in a <br> tag or line break which basically leaves a blank line between text.
    If you add     &nsbp;    or lots of them between words this gives you an extra space between letters.  How all your paragraphs sit on the page is defined by CSS.  E.g.
    p {
         margin:0;
         padding: 5px 0 0 10px;}
    This would place all text within <p> tags on your page, with a 5px gap at the top, no space to the right or bottom and 10px space to the left.  Hope this helps, good luck!
    Amanda
    www.kimberleywebdesign.com.au

  • Beginner question: Configure Tomcat for JAAS?

    Hi,
    This is a beginner question :-(. I'm trying to get JAAS to work on my Tomcat (6.0.12) installation. I used code from a Javaworld article (http://www.javaworld.com/javaworld/jw-09-2002/jw-0913-jaas.html)
    Of course I had to configure my Tomcat to work together with JAAS. The document I used is: http://tomcat.apache.org/tomcat-6.0-doc/printer/realm-howto.html
    According to the Tomcat doc I have to do the following steps before I can use JAAS to authenticate a user:
    1. Develop your code. Place the compiled classes in Tomcat's classpath
    2. Setup a login.config file for Java, and tell Tomcat where to find it (set JAVA_OPTS)
    3. Configure the JAASRealm in your server.xml
    1 Develop code: I use the following classes:
    PassiveCallbackHandler.java
    RdbmsCredential.java
    RdbmsLoginModule.java
    RdbmsPrincipal.java
    These classes I put in the package rdbmsjaas.
    In the %CATALINA_HOME%/webapps/Javaworld_Jaas/WEB-INF/lib directory I created the rdbmsjaas.jar file.
    The jsp is called jaas.jsp, and is stored in %CATALINA_HOME%/webapps/Javaworld_Jaas
    2. Setup login.config
    In %CATALINA_HOME%\conf I saved the file Javaworld_all_that_Jaas.config, containing:
    Example {
       RdbmsLoginModule required
       debug="true"
       url="jdbc:mysql://localhost/jaasdb?user=javauser&password=javadude"
       driver="com.mysql.jdbc.Driver";
    };I created an XP Environment Variable JAVA_OPTS with the value <-DJAVA_OPTS=-Djava.security.auth.login.config==C:/Program Files/Apache Software Foundation/Tomcat 6.0/conf/JavaWorld_All_That_Jaas.config> (excluding < and >)
    I used the fully qualified address, instead of $CATALINA_HOME/conf/JavaWorld_All_That_Jaas.config. I think XP balks when it sees $CATALINA_HOME).
    3 Configure JAASRealm in server.xml
    In %CATALINA_HOME%\conf\ I changed web.xml. I added the following lines:
          <Realm className="org.apache.catalina.realm.JAASRealm"
                 appName="jaas"
                 userClassName="rdbmsjaas.RdbmsPrincipal"
                 debug="99"
           />If I run the jsp from http://localhost:8080/JavaWorld_Jaas/jaas.jsp, I can enter my username/password, but when I click the Submit button, I get:
    Caught Exception: java.lang.SecurityException: Unable to locate a login configurationWhere did my configuration go wrong?
    Abel

    You will need a JSP/servlet engine such as Tomcat - Apache alone won't do it.
    I haven't seen any tutorials on set-up but the Tomcat documentation includes info on how to link to Apache. There are also books you can buy - check out the online book stores such as Amazon.
    There's also a lot of info on this forum.

  • Beginner question: creating my own virtual instruments from samples

    Hi, I have a beginner question. I'd like to make a click-track, but I want to use my own sounds, either recorded or from the internet. Can I do this with Logic Express 7, or do I need Logic Pro 7 and the EXS24?
    Thanks,
    Ryan

    I think you can do it, but it might be a pain.
    You could import a sample of a single click and just paste it into every beat on the Arrange Page.
    Other than that, you might need the sampler included with Logic Pro

  • Beginner Question: controlling AS3 with Flex button

    Hi
    I am learning Flex and AS3 and was hoping someone here could
    tell me what I am doing wrong. I have a basic fLex application that
    plays an flv. For the purposes of my application I do not want to
    use a videoDisplay Flex component, so I am using an AS3 class to
    play the flv. Here is my flex application:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" creationComplete="init()">
    <mx:Script>
    <![CDATA[
    import flash.display.Sprite;
    public var _video:Sprite = new simpleFlv();
    public function init():void
    rawChildren.addChildAt(_video,2);
    public function playPause():void
    ns.pause();
    ]]>
    </mx:Script>
    <mx:Button label="Pause" click="playPause()" right="10"
    bottom="10"/>
    </mx:Application>
    and here is my simpleFlv class:
    package
    import flash.display.Sprite;
    import flash.net.NetConnection;
    import flash.media.Video;
    import flash.net.NetStream;
    import flash.events.NetStatusEvent;
    import flash.display.Stage;
    public class simpleFlv extends Sprite
    public function simpleFlv(){
    var nc:NetConnection= new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    var vid:Video = new Video(320,240);
    this.addChild(vid);
    vid.attachNetStream(ns);
    vid.smoothing=true;
    ns.play("foo.flv");
    ns.addEventListener(NetStatusEvent.NET_STATUS,netstat);
    function netstat(stats:NetStatusEvent):void
    var netClient:Object = new Object();
    netClient.onMetaData = function(meta:Object):void
    trace(meta.duration);
    ns.client = netClient;
    The video plays when I run the application without including
    the pause button, but I get the following error when I try to run
    the application as coded above:
    1120: Access of undefined property ns
    I know I am missing something totally obvious here. How would
    I code a flex button to tell the flv to pause when I press it?
    Thanks in advance

    Try this to add simple pause and resume features for a video
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" creationComplete="init()">
    <mx:Script>
    <![CDATA[
    import flash.display.Sprite;
    public var _video:simpleFlv = new simpleFlv();
    public function init():void
    rawChildren.addChildAt(_video,2);
    ]]>
    </mx:Script>
    <mx:Button label="Pause" click="_video.playPause()"
    y="10" x="403"/>
    <mx:Button x="472" y="10" label="Resume"
    click="_video.resumeVid()"/>
    </mx:Application>
    package
    import flash.display.Sprite;
    import flash.net.NetConnection;
    import flash.media.Video;
    import flash.net.NetStream;
    import flash.events.NetStatusEvent;
    import flash.display.Stage;
    import flash.events.AsyncErrorEvent;
    public class simpleFlv extends Sprite
    private var ns:NetStream;
    public function simpleFlv(){
    var nc:NetConnection= new NetConnection();
    nc.connect(null);
    ns = new NetStream(nc);
    var vid:Video = new Video(320,240);
    this.addChild(vid);
    vid.attachNetStream(ns);
    vid.smoothing=true;
    ns.play("foo.flv");
    ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR,
    asyncErrorHandler);
    private function
    asyncErrorHandler(event:AsyncErrorEvent):void {
    // ignore AsyncErrorEvent events.
    public function playPause():void {
    ns.pause();
    public function resumeVid():void {
    ns.resume();
    Vygo

  • Simple Flex Chart question - Plot Chart labels

    I'm playing around with displaying data from WDA as charts in Flex 3.
    I'm able to bind my internal table, which has 3 fields, to the plot chart.
    The table looks like this
    ext_id      type string    " bound to prjname in Flex
    cost         type string    " bound to prjcost in Flex
    benefit     type string    " bound to prjbenefit in Flex
    These are all bound to my island's DataSource.
    I have bound these in Flex and the Cost and Benefits are showing up as points on my chart. However, I can't seem to get the Project Name to display on the plot points. All I see when I mouse over the point is EXT_ID, and the values for cost and benefits.
    The cost/benefit values are coming across correctly, just not the project name (ext_id) value. any ideas?
    here's the Flex code for the chart
         [Bindable]
         public var dataSource:ArrayCollection;
         [Bindable]
         public var prjcost:String;
         [Bindable]
         public var prjbenefit:String;
         [Bindable]
         public var prjname:String;.
        <mx:PlotChart id="plotchart1" dataProvider="{dataSource}" showDataTips="true">
           <mx:series>
                <mx:PlotSeries displayName="{prjname}" yField="{prjcost}" xField="{prjbenefit}" dataProvider="/>
            </mx:series>
        </mx:PlotChart>

    This is really a Flex question not an Islands specific one.  I don't think the displayName properity is what you want to use here.  This is the name for the entire series as it will be displayed in the legend. I think what you want is a dataTip.  You register a callback for the dataTip rendering and then fill the custom dataTip quick info.
    This is an example from a bar chart, but the theory is the same:
    <mx:BarChart id="barChart" dataTipFunction="dtFunc" xmlns:mx="http://www.adobe.com/2006/mxml" type="clustered" width="100%" showDataTips="true" height="100%">
         <mx:verticalAxis>
              <mx:CategoryAxis categoryField="{SalesOrd}" dataProvider="{dataSource}" />
         </mx:verticalAxis>
         <mx:series>
              <mx:BarSeries id="bsGross" xField="{grossAmt}" displayName="Gross Amount" dataProvider="{dataSource}" fill="{otdFill}" showDataEffect="{slideIn}"  />
              <mx:BarSeries id="bsNet" xField="{netAmt}" displayName="Net Amount" dataProvider="{dataSource}" fill="{rtyFill}" showDataEffect="{zoomIn}"  />          
         </mx:series>
    </mx:BarChart>
    private function dtFunc(hd:HitData):String {
                  switch(BarSeries(hd.element).id){
                       case "bsGross":
                             return "Sales Order #: " +  hd.item.SO_ID + "\n" + FlashIsland.formatNumber(hd.item.TTL_GROSS_AMOUNT) + " " + hd.item.CURRENCY_CODE;                        
                             break;
                       case "bsNet":
                             return "Sales Order #: " +  hd.item.SO_ID + "\n " + FlashIsland.formatNumber(hd.item.TTL_NET_AMOUNT) + " " + hd.item.CURRENCY_CODE;
                             break;                   
                  return "Amount";

  • Flex Newbie Questions

    I have just started to explore the capabilites of Flex for
    possible implementation within my organization, and I have a few
    questions, answers to which I couldn't find on adobe's site. I'm
    hoping the Flex community can help.
    Firstly, can Flex easily integrate with exisiting J2EE-Web
    applications? For example, if I have an EJB-based application, can
    I use the existing EJBs and swap out the JSP-based front-end with
    Flex? If so, how easy is it to do this What kind of a learning
    curve are we looking at? If someone can explain how exactly this is
    done....I'd greatly appreciate it.
    Secondly, It seems the Flex framework itself is free....only
    the IDE costs money. Is my understanding correct?
    Third, What really is Flex Data Services? And what does it
    do?
    We have a bunch of J2EE-based applications in our
    organization, and the most time consuming part is always developing
    the front-end. Can Flex solve this problem without jeoparadizing
    our J2EE investment?
    I would really appreciate all the feedback!

    aamya
    Firstly: "Easily" is a relative term, so I"ll stay away from
    that one. The short answer is "yes", you can access java objects
    from Flex. I can't really tell you the learning curve, because I
    don't know you or your skills, however I've been told that Java
    programmers will be quite at home with ActionScript.
    Second: You are correct.
    Third: FDS essentially allows you to connect your Flex app
    with "live" back end data. For example, if a helpdesk ticket status
    changes because User A has closed it, User B's interface will
    automatically refresh.
    Flex is a pesentation layer solution, so the idea is to keep
    your back end intact - I can't guarantee that NO changes to your
    back end systems will be needed though, but I'd guess that you'd be
    90% good to go. Get started by downloading a 30-day trial, and go
    through the articles posted on Adobe.com and recently at CFDJ (
    http://cfdj.sys-con.com/).
    My user group site also has a list of resources:
    http://www.cfugitives.com/index.cfm?commentID=7
    Good luck!

  • Flex 2 questions

    Hello,
    I have 2 questions.
    1.  Is it necessary that the data from php to flex should be in xml format, if not then please provide a link or some code snippet in php and flex?
    2.  I have a webserver which gets socket values from another server, should i have to send the policy file from webserver or should it be from server which sends the sockets?
    Thanks

    http://support.lenovo.com/us/en/products/laptops-and-netbooks/flex-series/flex-2-14-notebook-lenovo?...
    1. Install the generic driver:
    1. Disable signature enforcement: https://www.youtube.com/watch?v=NM1MN8QZhnk
    2. Install the synaptic driver: 17.0.19
    3. Install the aforementioned patch
    2. Try the link above.

  • Flex viewstack question

    My default creationpolicy for my viewstack causes each child
    component to be created only when a user navigates to it. This is
    good for performance. I was wondering if there was a way to have it
    recreate itself each time a user comes back to that particular
    view. Also is there a way to explicitly call a recreate on a
    particular child in a viewstack?
    Thanks

    Let's say the child component in question displays the
    information about a house for sale: the price, square footage,
    number of bedrooms, etc. In this component you would have Label
    components and either Text or TextInput fields to hold the values:
    Price: $175,000
    In Flex you could code this as: <mx:Label text="Price"
    /> <mx:Text text="{price}" />
    Here, the price is a variable in the component which is bound
    to the Text component using the Flex binding notation of { and }.
    You declare price (and all of the other values) using:
    [Bindable] public var price:Number;
    [Bindable] public var bedrooms:Number;
    // etc.
    To repopulate this component with new data you just set the
    variables:
    <mx:ViewStack ..>
    ....<AgentInfo id="agentInfo" ../.>
    ....<RealEstateInfo id="realInfo" .../ >
    </mx:ViewStack>
    realInfo.price = 200000; or realInfo.price =
    dataFromServer.price;
    You set up some variables in the component to hold your data
    and bind those variables to the UI controls. Whenever you change
    the variables the values on the screen change.
    The beauty of data binding is that you don't need to have the
    component created - the ViewStack by default only creates the
    contents of its first child. If this realInfo child is the second
    or third, the controls within it won't be created until the user
    visits it. But the variables are created so you can change them and
    data binding will take care of the rest.
    There is a simpler way to do the binding. Every component has
    a "data" property. Let's say you have an ActionScript class that
    represents the information about a house (House class). Rather than
    doing:
    realInfo.price = house.price;
    realInfo.bedrooms = house.bedrooms;
    etc.
    You can do:
    realInfo.data = house;
    and then instead of <mx:Text text="{price}" /> in the
    component, do <mx:Text text="{data.price}" />

Maybe you are looking for

  • I've extended java.lang.Thread.  How do I get WebLogic to use my version?

    I want to add a String attribute to the thread class to save some extra info I need. I extended the Thread class with a private String with getter/setter methods. Since WebLogic instantiates the threads and not my own code, how do I get WebLogic to u

  • Assign shortcuts to sound item

    Hi I'm using Oracle Forms 6i. And I would like to know if it's possible to assign shortcuts to play/rec/stop/(...) buttons in the sound item. What I really want to use is a speechmike control to control those buttons. If it's possible, how can I do i

  • Service Callout on ALSB2.5: Urgent

    Hi, I am using ALSB2.5 I have created a "Business Service" with following config, 1) Any XML Service 2) Prtocol- HTTP 3) HTTP Request Method- Post. I have created a Proxy Service , which is "Any XML Service" based on HTTP ptotocol. I want to make a s

  • Can Labview be installed on a portable harddrive

    I would like to be able to take my work home with me and would like to know if I can install my labview development software on my portable hard drive so that I can plug in (USB) and work where ever I want.

  • I want to know if...

    can i transfer my apple care  because i have a apple care  in my iphone 4s then im planning to buy iphone 5 can i transfer the apple care to iphone 5?