How to Reference a Slice from a Hotspot in a Add Behavior

I want to create a command that does the following ;: the user selects several items and runs a command that will copy that selection to another frame (prompt for frame number), create a slice around that selection, hide that content on frame 1, insert a hotspot and link that hotspot to the slice as a swap to the chosen frame. Once complete, the user should be able to hit F12 and see their swap in action. This is useful for things like button states, menus, tooltips, or other rollover popups.This would take many of the manual steps out of creating a swap.I think the behavior I'm trying to achieve should be built into Fireworks. The prototyping capabilities are in need of improvement from a workflow perspective..
I can use dom.copyToHotspot() to create the slice (very nice). I'd like to use the addBehavior("MM_swapImage directive to connect my hotspot to my slice. To understand how this works, I manually dragged from a hotspot to a slice and create a swap image and then I looked  into the History panel and copy steps. I got the following
     fw.getDocumentDOM().addBehavior("MM_swapImage(278038900,1,\"\",1,1)", "onMouseOver", -1);
The number '278038900' causes me some concern. When I look at the documentation for extending Fireworks, I see that that number refers to the target slice. The documentation say "target specifies the slice to which the behavior is attached. Pass1– for this value; all other values are used internally by Fireworks" which I take to mean pass -1 to refer to the selected hotspot/slice. Here's the rub, I don't want to refer to the select hotspot, I wanted to refer to the destination slice. I'm wondering if I could reference the destination slice using a selection array.
This brings up an issue with Fireworks scripting. It would be nice if I could give items an ID so that I could refer to those items by their ID rather than by the contents of a selection. I noticed that in the command 'dom.addSwapImageBehaviorFromPoint(where)', they say that I can select a slice and then refer to a hotspot at where (x,y). That might be an avenue to addressing my problem. But, finding something at point (x,y) is pretty fragile. If I add a hotspot, I'll know the x,y.

i have same problem.
http://www.ekapeninsaat.com.tr

Similar Messages

  • HT204022 how do i delete photos from camera roll after i add them to specific folders ?

    how do i delete photos from camera roll after i add them to specific folders ?

    Camera roll is the master list of all photos in the app.  When you place a photo in an album, it's still in the camera roll.

  • How to reference poplet images from Small_product view

    Is there any way to reference the poplets from the small_products view in BC
    I am wanting to change out an image based on colour using poplet images for a clothing site. I need to get the images and the order they are attached in the poplets?
    Any help would be great.
    Cheers Daniel

    Hi Daniel,
    Unfortunately we only have poplets rendering in the details/large layout view for products. 
    I'm unaware of any possible workarounds at this stage but will leave this post open for further suggestions.
    Kind regards,
    -Sidney

  • How to make a slice from a selection?

    Hi everyone,
    So many times I had a square selection and wanted to make a slice from it. Is it possible?

    Use Rectangle or Ellipse Marquee Tools, or Lasso Tools then hold down Alt or Option key and drag on the selection.

  • How do I keep iTunes from moving files when I add them to my library?

    I use a site where artists give away their songs via torrent, so I like to seed as much as possible. But recently when I've added files, they're removed from their original folder and moved to a more generic "music" folder. How can I keep iTunes from doing this, so that my uploads aren't interrupted?

    In iTunes, go to Edit > Preferenes > Advanced, and make sure that "Keep..." and "Copy..." are both unchecked.

  • How to reference/play video from the MicroSD card

    I am developing an interactive video application using AIR on Android and need to store media on an external MicroSD card.  How do I access that file location in AIR?  I have tried:
    /mnt/Removable/MicroSD/
    /mnt/external1/
    etc. 
    Is there code similar to:
    var myFile:File = File.documentsDirectory.resolvePath("Test Folder/test.txt");
    That would allow me to reference the external storage?

    OK...I am highly confused.  And I think you are a bit confused too...adding to the confusion.
    Log and CAPTURE is for capturing from tape. If you aren't capturing from tape...but rather an SD card...do not use Log and CAPTURE.  Tapeless capture uses log and TRANFER.  That's what I mention in that tutorial. 
    >How do I set up the preferences so that I get the capture window that shows the clips that I can import (capture) from my SD card?
    Watch the video again. You open Log and Transfer...click on the folder icon on the upper left...and then navigate to the backup of the card you make.  The FIRST step is to back up that card.  Then you use L&T...and direct it to the root level of the backup folder.  You click OK and all the clips in that folder will appear in the Log and Transfer window.
    >I keep getting prompted with a message that my HDV deck is not connected.
    Because you are opening Log and CAPTURE.  Again...log and transfer is what you want.
    >I'm just trying to have my video be captured wirelessly from the SD card into FCP.
    Sorry, you can't do that. You cannot do this wirelessly. You need to connect the camera to the computer with a wire...typically USB.  OR...you take the SD card out and either use an SD card reader connected to the computer via a cable (USB), or if you have a laptop with an SD card slot...well then, that would be wireless. Just slap the card into the computer and watch it show up on the desktop.  Then back up the footage, then Log and Transfer.
    >It's got to do something with setting it up in wither Easy Setup menu or one of the others.
    No. You do not need to use the Easy Setups. That is for tape capture. You determine what codec you will be converting to in the Log and Transfer preferences. Watch the video again...I explain this thoroughly.

  • How to reference MS Database from XML datasource?

    Hi,
    I have been tasked with writing an XML BI Publisher report that involves pulling data stored on our SQLServer database. I wasn't sure how to do this so I searched through my documentation and found information on Distributed Queries which I think addresses what I am trying to do. So I created a simple datasource test script based on the documentation to see if I could access the SQLServer database but I am having problems getting this to work. I created a datasource script, setup a concurrent job and tried to run the report but I'm getting a "java.sql.SQLException: ORA-00933: SQL command not properly ended" error.
    Can somebody please help me in regard to my problem and tell me what I'm doing wrong? I am using the XML Word plugin 10.1.3.4.1. Here's the datasource code.
    <?xml version="1.0"?>
    <dataTemplate name="XXKNC_TIMECENTRE_TEST" description="XXKNC - TimeCentre XML" dataSourceRef="TimeCentre" version="1.0">
    <dataQuery>
    <sqlStatement name="Q1_TimeCentre">
    <![CDATA[
    SELECT DISTINCT CardID, EmployeeName
    FROM tc2kdb.dbo.EmployeeT
    where CardID < 500
    order by EmployeeName
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_TimeCentre" source="Q1_TimeCentre">
    <element name="CardID" value="CardID" />
    <element name="EmployeeName" value="EmployeeName" />
    </group>
    </dataStructure>
    </dataTemplate>
    Thank you,
    Steve

    Bipuser,
    That still didn't work. I was thinking about this and my problem. When I am trying to access a database on the sqlserver I have to tell Oracle this by adding dataSourceRef="TimeCentre" to my datasource correct? But my TimeCentre reference is set up as an ODBC connection and I think this is the problem. Where or how do I setup this connection if we are not using BI Publisher server and only using the MS Word Pulgin? Or does Oracle somehow know that dataSourceRef="TimeCentre" is referencing a SqlServer database over an ODBC connection? I'm not sure if I should be setting up the TimeCentre link differently.
    Thanks again for taking time to help me with this problem,
    Steve

  • How to reference BPMN process from a different Composite

    I have one "master" composite that defines a BPMN process. This process takes the input and, based on that input, will direct the workflow to the required BPMN process. There will be several BPMN process that can be referred to, and each one is created in its own Composite.
    Currently, in the "master" composite, I've created a Web Service Adapter that is a reference to the required BPMN process from a different composite.
    There seems to be something missing my composite.xml source though, for when I try to compile everything, I get an exception.
    First, here's the XML for the reference in the "master" composite. You can see that there is no value for the web service port or location. I'm not sure what it should be because this is all design-time. At some point, I will deploy all of the composites to one server.
    <reference name="AssetSubmissionService"
    ui:wsdlLocation="AssetSubmissionProcess.wsdl">
    <interface.wsdl interface="http://xmlns.oracle.com/bpmn/bpmnProcess/AssetSubmissionProcess#wsdl.interface(AssetSubmissionProcessPortType)"
    callbackInterface="http://xmlns.oracle.com/bpmn/bpmnProcess/AssetSubmissionProcess#wsdl.interface(AssetSubmissionProcessPortTypeCallBack)"/>
    <binding.ws port="" location=""/>
    <callback>
    <binding.ws port=""/>
    </callback>
    </reference>
    The exception is: Error(12,61): Parse of component type files failed, check the adf-config.xml file : "Error at line 32 char 38: Malformed WS Binding port. Missing # between namespace URI and service/port names."
    Thanks,
    Mike

    Mike,
    There needs to be a binding defined in the other WSDL. If there is not at design time you may need to deploy the 2nd composite in order to get a copy of its WSDL with a binding defined.
    Thanks,
    Adam DesJardin

  • How to reference session id from non-apex page

    Hi,
    I am looking to integrate an Apex application with the FreeFind site indexing service.
    Here's how it works:
    You create a form on the Apex page that posts the your search string to the FreeFind website:
              <form style="margin:0px; margin-top:4px;" action="http://search.freefind.com/find.html" method="get" accept-charset="utf-8" target="_self">
              <input type="hidden" name="si" value="70856809">
              <input type="hidden" name="pid" value="r">
              <input type="hidden" name="n" value="0">
              <input type="hidden" name="_charset_" value="">
              <input type="hidden" name="bcd" value="&#247;">
              <input type="text" name="query" size="15">
              <input type="submit" value="search">
              </form>The search results are then rendered on a FreeFind web page. However, you can upload you own HTML template to use when rendering the search results. See the sample template below:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>::title::</title>
    </head>
    <body>
    ::content::
    </body>
    </html>What I would like to do is create a template that mimics the look and feel of my application, providing navigation to pages within my application.
    My question is, how could a include the session id in the links in the template, in order to retain session context?
    Thanks,
    Andrew.

    Andrew,
    Have you considered using Session ID 0? This was designed to assist in SEO for APEX pages. If each time a user hits an APEX page, a unique session ID is embedded in the URL, the search engines did not rank APEX pages well. Thus, if you put a "0" (zero) in the session ID, APEX will still work for public users, and it more SEO-friendly.
    I have used it for my site for some time now: http://sumnertechnologies.com/apex/f?p=10000:1:0
    Hope this helps!
    Thanks,
    - Scott -
    http://spendolini.blogspot.com/
    http://sumnertech.com/

  • How to use Messeges component from a button Action ? (add item to Messages)

    Hi
    Thank you for reading my post
    I have a Messages component on one of my ADF JSF pages.
    i create an Action method for one of my buttons that are on the page and now i need to
    add some items to Messages component , for example to alert the manager that the user name he/she want to add to system is already exists.
    can some one give me some help about this ?
    my problem is that from an Action method how i can access that Messages on the page that called the action.

    Hi,
    this is from the ADF Developers guide which is available on OTN:
    if (!password.equals(confirmPassword))
    FacesMessage fm = new FacesMessage();
    fm.setSummary("Confirm Password");
    fm.setDetail("You've entered an incorrect password. Please verify that you've
    entered a correct password!");
    FacesContext.getCurrentInstance().addMessage(null, fm);
    }Brenden

  • HT4913 how do you take music from one Iphone (4s) and add it to another(5s), when no music appears in the library when the phone connects to itunes, but there is 13gb on the phone?

    I have upgraded to an Iphone 5s, however all of my music is on my old phone (4s), i want to transfer all 12.7gb of it to my new Iphone, but i cannot drag and drop it? how can i take my music from my 4s and add this to my 5s using Itunes on a windows laptop?

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • How can I stop Firefox from using and installing AVG add-ons?

    Firefox continually re-installs AVG Toolbar and Secure Search and I need to be able to remove everything AVG permanently. My Alternative is to use another browser, so please advise asap?
    Thanks.

    REmove from Firefox Toolbar and windows control pannel
    In order to uninstall a possibly unwanted extension, please do the following:
    #From the Firefox window click the Firefox button at the top left and select ''Add-ons'', or, if the Firefox button is not shown, click the ''Tools'' menu and click ''Add-ons''.
    #Once the Add-on Manager has opened in a new tab, click the ''Extensions'' button on the left side of the window.
    #You should now see a list of your installed extensions on the right side together with buttons on the right side of each extension.
    #To remove an extension from Firefox, simply click the ''Remove'' button. You should see a message that informs you about the successful removal of the add-on.
    #Note that some add-ons require a Firefox restart to be removed completely. To perform a Firefox restart after the add-on removal, click the ''Restart now'' link in the message.
    You can find further information about uninstalling extensions in the following articles:
    [[Disable or remove Add-ons]]
    [[Remove a toolbar that has taken over your Firefox search or home page]]

  • How to reference a costum controller from a View?

    Hello,
    I've created a costum controller and set it at the required controllers of the component.
    My question is how to reference this controller from a certain view in order to put values in it?

    Hi Roy
    If u want to set the Values for the Context Variables inCustom Controller then u can do like this
    wdThis.wdGet<<CustomControllerName>>().wdGetContext().currentContextElement().set<<ValueATTributeName>>(<<Value>>);
    With Wishes
    Krishna Kanth

  • Reference HttpServlet object from webservice method ...

    How to reference HttpServlet object from webservice method to access HTTP header?
    Thanks
    Marcel

    You are correct.
    I know that SOAP messages can be send not only via HTTP protocol.
    Our solution is restricted to use only HTTP protocol for communication between client and server by customer, because there is implemented transparent proxy for users authorization and strong security of communication via HTTP protocol. Authorization server transparently modify HTTP request header with user identity (DN from user certificate - with this PKI solution it is not possible to use standard SSL because certificate is proprietary enhanced and cannot be accessed in standard way). That is why I need access HTTP request header.
    Why I want to use webservices? I thing that webservice is flexible and perspective technology for integration and asynchronous communication between web clients and application (it is really more effective add new info in web page asynchronously from webservice than reload whole page).
    Thanks
    Marcel

  • How do I create a dial link from a hotspot on an image in Dreamweaver CS5?

    I understand how to create a link from text, or from an image, but I need to create a link within the image map so that clients on their cell phones can call by clicking on my chosen hotspot. Any suggestions?

    Right, thanks. I've had to adapt it and create 2 more duplicate contact images, for the other small screens as the image maps are too large on the smaller screens. But I managed to get it to work how I want. Thank you.
    But I can't figure out how to do the tel: link. I've tried so many variations. But when I update the website, and try it on my mobile phone (which by the way, is not an iPhone, it's just a Samsung Tocco Lite), the tel: links won't work, both on the images, and the raw text. My phone just keeps coming up with an error message, saying: "Invalid Phone Number".
    The text tel: links are: <div class="PhoneNumber"><a href="tel:+64-09-537-1458">09537 1458</a></div>
    I've had to put the phone numbers in seperate div tags, that way, I can hide each div tag, according to the layout for the screen sizes.
    And the image tel: links are: <area shape="rect" coords="6,36,110,59" href="tel:+649537 1458" />
    As you can see, both these tel: links are different, but both don't work.
    Is there something I've done wrong to make the error message pop-up instead of dialing the number? Or is it the case of it being my mobile phone that doesn't support it. How can I correct it in each instance if it is the case, so that it will work on all forms of mobile phones?
    Please note that I am in New Zealand, and the country code is 64. and 09 is the area code.
    Thanks.
    Edit: It doesn't matter now. I've managed to figure it out, and it now works on my phone.

Maybe you are looking for