[iPhone SDK] non-rectangular button with png

Is there any way to create an image button with a png. but make it so that the transparent areas are not hittable?

Now we're cooking with gas! Thank you so much for your
assistance!
The only issue left;
is it possible for the Events to penetrate through, so that
if two elements slightly overlap, the transparent part of obj1 will
allow a onclick (and subsequently the onmouseover) event on el2,
preferably dynamically so that I don't have to add event handlers
between the two.
Is there a simple way or do i need to calculate the overlap
using the x/y coords and width/height of each element, then
manually dispatch?
here's where I'm at thus far (with this discussion)
Firstly, the class for the movie clip,
then our frame.

Similar Messages

  • Non-Rectangular Buttons with images

    is it possible to create a non-square "button" in flash cs4
    programmatically using as3?
    Using a xml document, i'm trying to be able to retrieve a
    .png file with transparency, and have said transparent area's be
    not clickable.
    Long story short, I'm creating a map with a bunch of
    clickable areas. These areas are non-rectangular and I need them to
    not obscure other area's which would be in their rectangle. I need
    this to be done programmatically since the area's are going to be
    dynamic as is the data attached to them.
    fyi: I have a fairly good grasp of OOP, so don't be afraid to
    post up complex instructions.

    Now we're cooking with gas! Thank you so much for your
    assistance!
    The only issue left;
    is it possible for the Events to penetrate through, so that
    if two elements slightly overlap, the transparent part of obj1 will
    allow a onclick (and subsequently the onmouseover) event on el2,
    preferably dynamically so that I don't have to add event handlers
    between the two.
    Is there a simple way or do i need to calculate the overlap
    using the x/y coords and width/height of each element, then
    manually dispatch?
    here's where I'm at thus far (with this discussion)
    Firstly, the class for the movie clip,
    then our frame.

  • My iphone has developed sticky buttons with voice overide. I have tried restoring the phone to no avail. Please help!

    my iphone developed sticky buttons with voice overide. I tried to restore but that did not help. What should I do to get the phone to work again?

    If it is under warranty contact apple to get it repaired.
    http://expresslane.apple.com

  • IPhone SDK question. Problems with Addressbook and Addresses.

    I know the api is closed as of beta but I have serious problems adding street, zip and city terms to the multivalue address property. I am doing an application for release around the new model of iphone and any information about how to use the address property would be great. I can say, phone numbers I can add as many as I like as of now its only addresses I have problems with, and sadly I can't find information anywhere, including the SDK documentation how to write these properties to a record.
    I hope any of you can help me or give me a number I can call for help directly from apple.
    Thank you in advance.
    /Klaus

    I still wonder about this, but I got a new issue and that is adding a "default" photo to the address record I am creating.
    I try load my application icon from the application resources to add it to the addressbook record.
    NSString* imageName = [[[NSBundle mainBundle] pathForResource:@"Icon.png" ofType:nil]];
    NSData *iconData = [[NSData alloc] initWithContentsOfFile:imageName];
    ABPersonSetImageData(person, [[iconData bytes]], nil);
    Ugh the iconData gets allocated and initedWithContentsOfFile imageName. And yes it loads. Offtopic, how to mark segments as code so no fancy functions strip text and whitespace from my code exampes on the forum?
    But get bad access when I try add the image to the record. I know there was some articles on blogs about this last week, but seems like they been pulled off now.

  • Hotspots for non-rectangular buttons

    Does anyone know how to create a button which does not trigger on the image itself as the are always rectangular.  I am trying to create a series of nested hexagonal buttons, when nested the transparent areas of the photoshop or png file is is not visable which is what I want but it the transparent area does trigger the rollover/trigger event.
    I would like to know if you can create a hotspot for a button which is not reliant upon the image file but another shape similar to hotspots in Dreamweaver or is there a work round using other Muse CC features?

    Brad, Thanks for the reply, I assumed that Muse would not allow this as they have simply ignored some basic requirements such as tables, hotspots, dropdown/radio buttons in forms etc. and have concentrated on gimicks like paralax scrolling, dont get me wrong it looks good but they should have got the foundations build first.
    I do appeciate your response however its not really the answer, although I could go out and use Dreamweaver or even write the HTML myself (at a push) the point of Muse according to Adobe is that you dont need to 'write a single line of code'.  From experience this is not true and Muse as a base application is limited creatively.

  • [iPhone sdk] anybody having luck with NSURLCredentialStorage?

    Doing this....
    NSURLCredential *userCredentials = [NSURLCredential credentialWithUser:username
    password:password
    persistence:NSURLCredentialPersistenceForSession];
    NSURLProtectionSpace *space = [[NSURLProtectionSpace alloc] initWithHost:host
    port:[port intValue]
    protocol:protocol
    realm:@"Protected Area"
    authenticationMethod:nil];
    [[NSURLCredentialStorage sharedCredentialStorage] setCredential:userCredentials
    forProtectionSpace:space];
    But neither UIWebView nor NSXMLParser use the credentials when I access a url that has basic authentication that corresponds to the way I set up my credentials in the above code.
    I snooped the transaction with wireshark, and the iPhone is never offering credentials. It gets the challenge from the server and that is it. What is worse, I don't know that the web view or xml parser have delegate methods that tell me that authentication is required. A search in this forum for "NSURLCredentialStorage" returns basically nothing. Is what I am trying even supposed to work?
    Many thanks, many thanks...

    Well, this functionality appears to just not work at all. I'm not even sure why it is included and there are basically 0 examples anywhere. (Not suprising- hard to have a working example of something that doesn't work.)
    If you want to preemptively send auth credentials (which will usually be the case inside an app, I think), the best way I found was to read all the data into memory via a url connection object and then pass it to the parser.
    In doing this, you'll be able to set the authorization header directly on the http request. Kinda ugly to go this route but at least it works.

  • Non-rectangular Border?

    Hello,
    Is it possible to use a Border, for example a javax.swing.border.EtchedBorder, to outline a Shape?
    I'm developing some non-rectangular Buttons and would like to be able to use some of the standard Borders with them.
    Thanks,
    Ted Hill

    Hi,
    Were you able to find a solution to your problem?
    I am trying the same on a round JPanel.
    Thanks
    Ashish

  • IPhone SDK CodeSign Error: Redux (latest OS X update is broken)

    This bug - http://discussions.apple.com/thread.jspa?threadID=1455699&start=0&tstart=0 - is back. My AdHoc project, which worked perfectly last week, has just stopped building, with this:
    "object file format invalid or unsuitable"
    As soon as I upgraded from 10.5.7 to 10.5.8, this bug appeared.
    However, this bug was officially fixed in 10.5.7 - so, I'm guessing here, Apple has accidentally re-created it.
    Unfortunately, I cannot add to the original post, because Apple has frozen the topic.
    So, here's a new topic to ask if anyone else is having this problem, and what they did about it - is it exactly the same as the old bug? or is it different in some way?
    I'm going to try some of the workarounds for the old bug - but hacking command line scripts isn't fun, and I'm worried I might break something even worse .

    iPhone Dev Center
    Downloads
    Read me before downloading
    If you have updated your device to iPhone OS 3.1.3 with iTunes, you must install iPhone SDK 3.1.3 in order to continue with your development.
    *iPhone SDK 3.1.3*
    iPhone SDK 3.1.3 includes the Xcode IDE, iPhone simulator, and a suite of additional tools for developing applications for iPhone and iPod touch.
    _Posted: February 2, 2010_
    Leopard Build: 9M2809a
    Snow Leopard Build: 10M2003a
    *Leopard Downloads*
    iPhone SDK 3.1.3 with Xcode 3.1.4
    iPhone SDK 3.1.3 with Xcode 3.1.4 Readme
    *Snow Leopard Downloads*
    iPhone SDK 3.1.3 with Xcode 3.2.1
    iPhone SDK 3.1.3 with Xcode 3.2.1 Readme
    *Other Downloads*
    iPhone SDK Agreement
    iPhone Configuration Utility

  • IB 3.1 iPhone SDK - UITableViewController?

    When you drag an instance of UITableViewController out of the IB Library in the iPhone SDK, you get a view with a tableView in it.
    Now if you have an existing window and other objects in that window, including a tableView (that you are trying to add a controller for), how are you supposed to do it?
    Usually, controller objects in IB just appear at the top-level in your nib file and have properties to connect them to the view object (a tableView) and the model object (the content).
    What is this new thing where it opens a view with a tableView in it already?
    Anybody know? Do I have to start the whole window with this view and add other objects to it? It's not even in the window - it doesn't even have its own window.

    iPhone Dev Center
    Downloads
    Read me before downloading
    If you have updated your device to iPhone OS 3.1.3 with iTunes, you must install iPhone SDK 3.1.3 in order to continue with your development.
    *iPhone SDK 3.1.3*
    iPhone SDK 3.1.3 includes the Xcode IDE, iPhone simulator, and a suite of additional tools for developing applications for iPhone and iPod touch.
    _Posted: February 2, 2010_
    Leopard Build: 9M2809a
    Snow Leopard Build: 10M2003a
    *Leopard Downloads*
    iPhone SDK 3.1.3 with Xcode 3.1.4
    iPhone SDK 3.1.3 with Xcode 3.1.4 Readme
    *Snow Leopard Downloads*
    iPhone SDK 3.1.3 with Xcode 3.2.1
    iPhone SDK 3.1.3 with Xcode 3.2.1 Readme
    *Other Downloads*
    iPhone SDK Agreement
    iPhone Configuration Utility

  • Non-Rectangular JFrames using JNA or IBM IFrame

    Hi,
    I want to make a non-rectangular frame with round-shaped edges. I searched through this forum. But still unsuccessful. I can even go for a platform dependent solution. But i don't want to use Robot class which is taking screen-captures at interval or at system-events. This approach is very slower and faulty. Is anybody having experience in using JNA or IBM IFrame libraries (or any other approach) for this purpose?
    Thanks in advance,
    Sunil

  • IPhone SDK 3.1.3 XCode 3.2.1 Snow Leopard update (lcrt1.10.6.o not found)

    Today I downloaded the iPhone SDK 3.1.3 XCode 3.2.1 Snow Leopard update.
    After installing it, I looked in the Project Info. In the Deployyment section, the "Mac OS X Deployment Target" is set to "Max OS X 10.5".
    Naturally, as fussy I am, I changed it to Mac OS X 10.6, which is what I want. After Building, it reports an ld error: i.e.
    ld: library not found for -lcrt1.10.6.o
    Why does this happen? Did others have the same experience?
    Is this normal or how to fix? (Other than the obvious step to go to look for the missing library and try to install it myself).

    iPhone Dev Center
    Downloads
    Read me before downloading
    If you have updated your device to iPhone OS 3.1.3 with iTunes, you must install iPhone SDK 3.1.3 in order to continue with your development.
    *iPhone SDK 3.1.3*
    iPhone SDK 3.1.3 includes the Xcode IDE, iPhone simulator, and a suite of additional tools for developing applications for iPhone and iPod touch.
    _Posted: February 2, 2010_
    Leopard Build: 9M2809a
    Snow Leopard Build: 10M2003a
    *Leopard Downloads*
    iPhone SDK 3.1.3 with Xcode 3.1.4
    iPhone SDK 3.1.3 with Xcode 3.1.4 Readme
    *Snow Leopard Downloads*
    iPhone SDK 3.1.3 with Xcode 3.2.1
    iPhone SDK 3.1.3 with Xcode 3.2.1 Readme
    *Other Downloads*
    iPhone SDK Agreement
    iPhone Configuration Utility

  • Xcode 3.1.4 and iPhone SDK

    I have X-code version 3.1.4 installed on my system, but I cannot seem to find the correct version of the iphone SDK to install along with it ... I am in the middle of a development project in college and can't afford to spend the time upgrading my system to snow leopard ... can someone please point me in the right direction?
    Thanks,
    Michael

    Apple's iPhone Dev Center has only the 3.2 SDK available to download, which works only with Snow Leopard. If you're unwilling to upgrade to Snow Leopard, you'll have to search the Internet to see if someone's hosting a copy of the 3.1 SDK, which works on both Leopard and Snow Leopard.

  • I have an iphone 5 that i trade with a family member they have coverage on it. now the iphones sleep wake button doesnt work sometimes can apple replace my iphone even if i dont have the box or recipit to the product or can they just repair it?

    i have an iphone 5 that i traded with from a family member. its has coverage but now the sleep/wake button doesnt work sometimes. can apple replace my iphone and give me a new one or is it just something they can repair? i dont have the box or recipit to apple care or the iphone

    Apple can fix it without your receipt or box. They pull the serial number from the device and determine warranty status from that.  Hopefully ApplCare was registered to the product before you lost the receipt though.  If not, you can go back to the point of purchase and obtain your AppleCare receipt and Apple can help attach it to the iPhone.

  • Help, my iPhone 5, I've turned it off and on and it has the same fault. What ever you press on the screen highlights with a box round it. When you press the round button with the square in the centre the voice on the phone tells you the time. Then the voi

    Help, my iphone 5 is locked and will not function! I've turned it off and on and it has the same fault. What ever you press on the screen highlights with a box round it. When you press the round button with the square in the centre the voice on the phone tells you the time. Then the voice says screen lock. If I try and unlock the phone the voice says phone unlock but you can't put the code in. If you hight the box it will say the number but not put the code in?! What's the crack?

    Quickly Triple tap the home button to de-activate VoiceOver.

  • HT5557 I cannot open an iBook on my iphone where it was purchased. There is a button with a square next to the book. Can anyone help?

    I cannot open an iBook on my iphone where it was purchased. There is a button with a square next to the book. Can anyone help?

    Hi bellenyc,
    Welcome to the Support Communities!
    The article below may be able to help you with this issue.
    Click on the link to see more details and screenshots. 
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    I hope this information helps ....
    Have a great day!
    - Judy 

Maybe you are looking for