Targeting a frame with a button

hey guys
in my lack of using Flash since macromedia's version 5, i've
forgotten the actionscript needed for telling a button that when
it's released, to load a url in an external iframe on a webpage.
the actionscript toolbar in cs3 is really confusing me. any help is
greatly appreciated.

Create your button and give it an instance name. Then place
this code in a separate layer at the same keyframe:

Similar Messages

  • Targeting a frame with a flash button

    I am trying to target the main frame of my frameset with a
    flash button located in the left frame. button works fine when i
    target _self, _top.... or the frame it is in. but if i try to
    target any of the other frames in the frameset it has no effect

    Read my book. You'll get it. 8)
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "*dreamer" <[email protected]> wrote in
    message
    news:e3lik3$q59$[email protected]..
    > Originally posted by: Newsgroup User
    > > As yet I hav't touched on frames
    >
    > Good. Keep it that way.
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    > ==================
    >
    >
    > "*dreamer" <[email protected]> wrote in
    message
    > news:e3kso1$1hi$[email protected]..
    > > Till someone with more knowledge answers your query
    I can give you this
    > > link:
    > >
    > >
    http://www.kirupa.com/developer/flash5/frames.htm
    Some of the Adobe team
    > > maybe
    > > on May hols. As yet I hav't touched on frames,
    sorry petromilka .
    > >
    > > Seing as you tried everything else did you try
    _blank
    > >
    > >
    > >
    >
    >
    >
    >
    > <titters @ Murray></titters @murray>
    >
    > I have tried Murray with the 'nested templates' but to
    no avail..ahaaaaa
    > Fact
    > is I just don't understand how the darn things work,
    locked . editable
    > regions,
    > or otherwise..shakes head..
    >

  • Is there a widget with I can open a text frame with a button and close it with the same botton?

    No lightbox, no rollover.
    Click on the same botton
    I need to use it in mobile version.
    I need add text information on the image of my project in the mobile website version.
    I tried here in the second image but I used 2 button; I can't hide the X button when it's closed. I don't like it.
    http://www.studioarcrea.com/phone/sanit%C3%A0.html

    Howdy,
    Your link doesn't work but perhaps the tooltip widget is what you are looking for?

  • MAKE EMBEDDED QUICKTIME WITH PLAY BUTTON IN FRAME

    Hello does anyone know how to make an embed quicktime with a play button in the video frame so it has a poster frame and a button on it and wont play until it is clicked on

    It's known as a poster movie. The first file acts as either a placeholder (or a button) that is linked to the second file.
    You can use any image format to create your click to play "button" and add it to a single frame from your movie or to another image. Size this 16 pixels higher than your movie source file if you plan on showing the movie controller and save it as poster.mov.
    Your html code will have this poster movie load and nothing further will happen until your visitor clicks on it. Once clicked the second .mov file will begin downloading and then playing. You can also use this poster movie technique to load a second movie directly in the QuickTime Player app.
    http://homepage.mac.com/kkirkster/C/
    One of mine. Take a look at the page source to understand the "href" and "target" tags.

  • Putting frame with buttons into a thread

    please help!!!
    i've got a thread:
    package aJile;
    import java.io.*;
    import java.net.*;
    public class SocketHandler extends Thread
      private Socket socket;               // Socket used for messages 
      private int socketNr;
      private byte[] inbuf;
      private InputStream in;
      private OutputStream out;
      public SocketHandler(Socket socket)
        this.socket = socket; 
      public void send(String str) throws IOException {
           out.write(str.getBytes(), 0, str.length());
           out.flush();              
      public String receive() throws IOException {
           int numBytes = in.read(inbuf);
          String str = new String(inbuf, 0, numBytes);
          return str;
      public String switchOn() throws IOException {
           send("1");
           String state = receive();
           return state;
      public void run()
        try {
          // set up the input and output streams
          in  = socket.getInputStream();
          out = socket.getOutputStream();
          inbuf = new byte[128];
          receive();
         // System.out.println(switchOn());     
          in.close();
          out.close();
          socket.close();
          System.out.println("closing");
        catch (Exception e)
          System.out.println("Caught exception "+ e);
    }and i want to add a frame with buttons to this thread. that everytime tread starts, this frame would appear. and that methods of the thread would be called with a button press. How to join them?
    here is a frame:
    package buttons;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Frame3 extends JFrame implements ActionListener
         JPanel pane = new JPanel(); 
         Icon lightIcon = new ImageIcon("light.gif");
         Icon darkIcon = new ImageIcon("dark.gif");
         JButton pressme = new JButton("Press Me");
         JButton ironButton = new JButton("Iron",lightIcon);
         JButton lampButton = new JButton("Lamp",lightIcon);
         JButton ovenButton = new JButton("Oven",lightIcon);
         public Frame3()  
              super("Event Handler Demo"); setBounds(100,100,300,200);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              Container con = this.getContentPane(); // inherit main frame
              con.add(pane);
              pressme.setMnemonic('P');
              pressme.addActionListener(this);   // register button listener
              ironButton.addActionListener(this);
              lampButton.addActionListener(this);
              ovenButton.addActionListener(this);
              pane.add(ironButton);
              pane.add(lampButton);
              pane.add(ovenButton);
              pane.add(pressme);
      public void actionPerformed(ActionEvent event)
        Object source = event.getSource();
        if (source == pressme){     
          JOptionPane.showMessageDialog(null,"Hello!","Message Dialog",
          JOptionPane.PLAIN_MESSAGE);
        if (source == ironButton){
             if (ironButton.getIcon() == lightIcon){
                  ironButton.setIcon(darkIcon);               
             else ironButton.setIcon(lightIcon);
        if (source == lampButton){
             if (lampButton.getIcon() == lightIcon)
                  lampButton.setIcon(darkIcon);
             else lampButton.setIcon(lightIcon);
        if (source == ovenButton){
             if (ovenButton.getIcon() == lightIcon)
                  ovenButton.setIcon(darkIcon);
             else ovenButton.setIcon(lightIcon);
      public static void main(String[] args){
           Frame3 app = new Frame3();
           app.setVisible(true);
    }thank you

    could you tell me how to avoid exceptions?
    what i want to to is to call a method wich simply sends a string and gets a string back.
    public String switchOn() throws IOException {
           send("1");
           String state = receive();
           return state;
      }but when i call this method in actionPerformed() i get exceptios and my socket closes. It sends the string though, but after this program crashes. is there anything special to do if i want to use this Frame3 in order to communicate with a client by pressing buttons?

  • Opening a frame with button click

    hi all
    when i am going to click a button which is placed in JTabel it should
    open a JFrame with some component.
    thanks & regards
    daya

    This task can be decomposed in two logically unrelated subtasks:
    1: Adding a button in a table column and listening to it
    2: Showing a frame from some method
    In case you are hesitant how to solve the first task: you need to create your own cell editor (possibly by extending DefaultCellEditor) that returns a button as editor component. Of course this editor must be set to the desired column(that must be editable too). And just listen to that button's actions.
    Another possible solution is to just render the column with a button and listen the table for mouse clicks, then determine the ros/column for the click and act correspondingly.
    The solution of the second task depends entirely on you.
    HTH
    Mike

  • Pause & restart timeline with one button

    I have created a lengthy animation as a prop for a TV
    production. They want to be able to start and stop the animation at
    will using only the mouse without anything being seen on the
    screen. To do this I want to make an invisible button that covers
    the entire screen. I know how to make it either start or stop, what
    I can't figure out is how to make the invisible button start and
    stop the timeline with alternative clicks ie click 1 starts it,
    click 2 stops it, click 3 restarts ad infinitum.
    Any help would be much appreciated
    Ralph

    Hi Cevema,
    The instance name is the instance name of the clip. When you
    select the
    clip on the timeline, open up your Properties Inspector. In
    the
    lower-left-hand corner there should be a "MovieClip" pull
    down and
    probably a text box with "<Instance Name>" in it. This
    is how Flash
    recognizes which clip you want to target. Add the name here
    (no spaces,
    don't start with a number, no special characters), and this
    is your
    instance name. Then, replace the "someClip" with the instance
    name. Say
    you used, "myInstance" for the instance name, your code would
    be:
    this._parent.myInstance...
    You would do this anywhere where "someClip" appeared in the
    example I
    showed you.
    In order for that code to work correctly, you will need to
    ensure that
    it is ON the button (not the timeline or anything). Also,
    your clip
    instance needs to be BESIDE your button on the timeline.
    Here's how:
    1. Your movie clip (the one to control) should be on a frame.
    The button
    you want to use to control the clip should be on the same
    frame. It
    shouldn't be inside the clip you want to control, in another
    scene, or
    anywhere else.
    2. When adding code to your button, select it (don't open it
    so you can
    see "DOWN"/"UP"/"OVER" frames), hit F9 (or open the actions
    panel) and
    add the code there.
    The reason you need to be careful when adding this code is
    because of
    something called scope. You'll notice that in the code I use
    a keywor
    called "this". It literally means...this! So if you are
    putting this
    code inside of some movie clip, "this" will refer to the
    movie clip. In
    this case, "this" refers to the button. "_parent" refers to
    the movie
    clip in which the button lives. It's like a word map....
    this._parent.someInstance >>> From "this", look in
    my "parent", and in
    there look for something with instance name "someInstance".
    Hope that clears it up.
    Patrick
    Cevema wrote:
    > Many thanks for your speedy help. Whilst I find creating
    the drawings and
    > animations easy as a graphic designer action script is
    like a foreign language
    > to me!
    > By clips "instance name" would that be the final name of
    the swf or 'scene
    > one'? Sorry to sound so thick but I can't recall
    "instance names" coming up in
    > my DVD course.
    > Many thanks
    > Ralph
    >
    http://www.baynewmedia.com
    Faster, easier, better...ActionScript development taken to
    new heights.
    Download the BNMAPI today. You'll wonder how you ever did
    without it!
    Available for ActionScript 2.0/3.0.

  • Target a frame in a movieClip

    I have buttons in a movie clip which are placed on the main
    time line. I also have movieclips placed on single frames (25, 30,
    35, etc) on the main time. When a button is released I want two
    things to happen -
    - the playhead to go to a frame on the main time line where
    the movie clip is placed - which I can do with this code -
    on (release) {
    this._parent.gotoAndStop("25");
    - then I'd like it to target a certain frame inside the
    movieClip with a var number (var number already generated). This is
    where I'm stuck. What is the path I use to target the frame inside
    the movie clip???
    Thanks for any help,
    Dave

    It's still not working....
    I named my movieClip (classifieds_mc) and my Var (collapse -
    which is a Number). I attached this code to the button (note:
    button inside movieClip than placed on main time line) -
    on (release) {
    //Movieclip GotoAndPlay Behavior
    this._parent.classifieds_mc.gotoAndStop("collapse");
    //End Behavior
    Nothing hapens when the button is releases. If I just target
    the frame on the main time line with this code it works
    on (release) {
    this._parent.gotoAndStop("25");
    But I'd like to also target a a frame inside the movieClip
    with a var Number.
    Any help on what I'm doing wrong???..??
    Thanks,
    Dave

  • Problem with Flash Button Sticking

    I am adding Handlers to Mouse Events using action Script 3.
    The buttons move up and down when rolling over the button. So you
    have that "wave effect" when navigating the site.
    The problem I am having is that if you rollout of the button
    before the button is done playing the movie it freezes at that
    point of the movie.
    Has anyone had this problem before? Can anyone help?
    THANKS!

    The standard reply is -
    1. Why are you using frames since there are many compelling
    reasons not to?
    2. Why are you using Flash navigation since there are many
    compelling
    reasons not to?
    Most people here don't work with (assiduously avoid) both of
    those critters,
    so, you may have trouble getting a more explicit response!
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "jawy2007" <[email protected]> wrote in
    message
    news:fgrr3g$ivf$[email protected]..
    > Problem with Frames in Dreamweaver 2004 mx using Flash
    9. When using Flash
    > buttons in Dreamweaver within a frame and specifing a
    target frame the
    > flash
    > button loads a new page in another window and not in the
    frame specified.
    >
    > Steps to reproduce:
    >
    > Dreamweaver: New Wesbite / "Create from samples" /
    Framesets / Select
    > "fixed
    > left"
    > In the left frame insert a Flash Button and link it to a
    page to load in
    > the
    > mainFrame.
    >
    > What went wrong?:
    >
    > When the flash button is pressed the page loads in a new
    Internet Explorer
    > window instead of loading in mainFrame frame.
    >
    >
    > What should have happened?:
    >
    > When the flash button is pressed the page should load
    with the mainFrame
    > frame.
    >

  • Target another frame in a framset from flash navigation

    Target another frame in a frameset with for example
    getUrl (example.html, "rightFrame");
    has Adobe released some solution?
    - Right now we migrate from Flash towards PowerPoint and CSS,
    because
    the lack of answers and interactivity in Flash because of
    Microsofts "security pathes" in IE 6 and 7
    Right now I cant find a simple solution of how to target
    another
    frame from a frame in the same html-doc from a button in a
    flash navigation.
    Am I right or wrong? It looks like everyone avoid this simple
    question?
    - Why?
    And I still appreciate every possible answer that could solve my
    problem and a lot of problem to other
    interactive producer.

    Cant target another frame in the same frameset (2 frames -
    LeftFrame and RightFrame ) in the same html.doc
    This is the code I have applied to the Flash button
    in a frame called navigation in LeftFrame:
    on(release){
    getURL("right.htm", rightFrame);
    For some reason I can't get the page to open in the target
    frame (RightFrame).
    It will only pop up in a new window. (_blank)
    Microsoft has done a some security restriction since februari
    2006.
    The problem is that you cant use flash navigation in the same
    frameset no longer.
    I´ve serched everywhere and it looks like there is no
    simple solution to this problem.
    Adobe suggest that you Work around with Javascript.
    But what´s happend if the user disable JavaScript in the
    WebBrowser?
    Isn´t that obvious - it´s a strategic issue for the
    Interactive webbindustry.
    It´s a crossroad - which way webdesigners/developers,
    markering managers
    e-commerce managers.., want to choose to work along with
    databases, content
    management system and so on.
    If Flash not can provide an easy way of targeting another
    frame in a webbrowser for
    its customers, the customers have to choose a another
    solution - CSS+php or even worse
    - PowerPoint.
    I already migrate to CSS, PHP and PowerPoint because of
    Adobes late response of Microsoft so called
    "..because of security reason".
    At least I hope Adobe is interested of producing a motion
    tutorial of how to solve the problems by
    Javascript or whatever complex and not user friendly
    solution
    they come up with.
    Do you understand now?
    If you can provide a simple code below - please tell me -
    I really appreciate that!!!!!
    Code on flash button in LeftFrame:
    OnPress (I appreciate some bright solution here or som e link
    to how I solve the problem.)

  • Flash nav targeting html frames...

    I have NO idea why, I've read all the posts about having a
    flash nav menu target a frame within a HTML frameset. I even set up
    a quick test... (I'm using flash MX2004 professional so you all
    know)
    Ok, this is what I did....
    I created a framset in Dreamweaver using their fixed top
    frameset. So there's a top nav frame, and a bottom content frame.
    the frame holding the flash nav is called header.htm. The
    content frame is called main.htm (or the default htm page that
    opens in that frame) The frameset master of course is called
    index.htm.
    I created a test flash nav with 2 quick buttons. This is the
    code on the first and second buttons...
    first button:
    on (release) {
    getURL("test1.htm","mainFrame")
    second button:
    on (release) {
    getURL("test2.htm","mainFrame")
    As you can see I'm targeting the content frame which is named
    "mainFrame" in the index page like this:
    <frameset rows="119,*" cols="*" framespacing="0"
    frameborder="NO" border="0">
    <frame src="header.htm" name="topFrame" scrolling="NO"
    noresize >
    <frame src="main.htm" name="mainFrame">
    </frameset>
    So, I run the whole thing and instead of the flash nav
    pointing at the "mainFrame" frame, it just opens a whole new
    window! I've researched all over the place, and i'm not new to
    flash, i've done some advanced stuff, so you would think this would
    be a simple endeavor... Am I truely that stupid, or is this an
    issue with flash targeting framesets?? PLEASEHELP!!

    Did you heard about _blank , _self , _parent , ....??? maybe
    is something to
    do with the names you are using...
    i didnt understand much ur problem but first thing u have to
    be familiar
    with those things.. i hope that helps.
    "King86" <[email protected]> escribi�
    en el mensaje
    news:ea8kmo$fd8$[email protected]..
    > according to the getURL syntax, the URL has to be in
    quotes. I even went
    > and
    > changed the frame name in the index.htm and flash to
    target the "lower"
    > frame
    > (which I don't think mainFrame is an illegal name) and
    it still opens a
    > new
    > browser window. I don't get it.... I've seen some people
    say the target
    > does
    > not have to be in quotes, as in the tech sheet that you
    referenced above,
    > but
    > it does the same thing... anything else I can try? I'm
    just floored that
    > something that should be so easy is so difficult..
    strange...
    >

  • How do I use the event.target.name String with an external dispatchEvent?

    ...I hope the title question makes sense...
    On my stage I have an externally loaded SWF with a button. When clicked the button dispatches an event to the main stage.
    On the main stage a listener then loads an SWF into a loader called gallery.
    The gallery loader is also being shared by buttons on the main stage which use the event.target.name String to call in SWFs with corresponding names.
    I am using Tweens to fade-out and -in content to the gallery when a button is pressed.
    Loading the SWFs was working until I tried to create a universal button function for the dispatchEvent buttons...
    The problem I have is that I don't know how to define the String to tell the newSWFRequest where to find the SWF when triggered by the external buttons.
    (I may be doing this all wrong... but figured the best way to load an SWF on to the main stage from an external SWF was by using dispatchEvent??)
    My code triggers the Event and the gallery loader fades out, but then it cannot find the new SWF:
    Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
    Please can someone help me understand the way to make the String point in the right direction? (I think the only errors are in bold below)
    Code:
    var myTweenIn2:Tween;
    var myTweenOut2:Tween;
    var nextLoadS2:String;
    // Listen for external event dispatched from external btns
    addEventListener("contactStage", btnClickExtrnl);
    function btnClickExtrnl(e:Event):void {
    nextLoadS2 = ?????
    myTweenOut2=new Tween(gallery,"alpha",None.easeOut,gallery.alpha,0,0.2,true);
    myTweenOut2.addEventListener(TweenEvent.MOTION_FINISH,tweenOutCompleteF2);
    // Btns Universal function
    function tweenOutCompleteF2(e:TweenEvent){
    myTweenOut2.removeEventListener(TweenEvent.MOTION_FINISH,tweenOutCompleteF2);
    myTweenOut2=null;
        var newSWFRequest:URLRequest = new URLRequest("swfs/" + nextLoadS2 + ".swf");
    myTweenIn2 = new Tween(gallery, "alpha", None.easeOut, gallery.alpha, 1, 0.2, true);
        gallery.load(newSWFRequest);
        gallery.x = Xpos;
        gallery.y = Ypos;
    Thank you.

    That works – thank you!
    I'm now using this code to fade in each of the SWFs:
    function contactStage(e:MouseEvent):void {
        var newSWFRequest:URLRequest = new URLRequest("swfs/"+e.currentTarget.name+".swf");
        myTweenIn = new Tween(gallery,  "alpha", None.easeOut, 0, 1, 0.2, true);
        gallery.load(newSWFRequest);
        gallery.x = Xpos;
        gallery.y = Ypos;
    But I cannot add the fade out function. I have amended the above code to create:
    var myTweenOutX:Tween;
    var myTweenInX:Tween;
    function contactStage(e:MouseEvent):void {
    myTweenOutX=new Tween(gallery,"alpha",None.easeOut,gallery.alpha,0,0.2,true);
    myTweenOutX.addEventListener(TweenEvent.MOTION_FINISH,tweenOutCompleteFX);
    function tweenOutCompleteFX(e:TweenEvent){
    myTweenOutX.removeEventListener(TweenEvent.MOTION_FINISH,tweenOutCompleteFX);
    myTweenOutX=null;
        var newSWFRequest:URLRequest = new URLRequest("swfs/"+e.currentTarget.name+".swf");
    myTweenInX = new Tween(gallery,  "alpha", None.easeOut, 0, 1, 0.2, true);
        gallery.load(newSWFRequest);
        gallery.x = Xpos;
        gallery.y = Ypos;
    But get this error:
    ReferenceError: Error #1069: Property name not found on fl.transitions.Tween and there is no default value.
    at ACOUSTIC_fla::MainTimeline/tweenOutCompleteFX()[ACOUSTIC_fla.MainTimeline::frame1:110]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at fl.transitions::Tween/set time()
    at fl.transitions::Tween/nextFrame()
    at fl.transitions::Tween/onEnterFrame()
    Where am I going wrong?

  • Creating a plot on a java Frame when a button is clicked

    hi
    I want to create a plot in a java application in a frame when a button is clicked.I mean to say a
    a plot between two single dimensional arrays one as x-axis and the other as y-axis. Can u please suggest me with an example
    Thank u

    JFreeChart

  • How to get the view in editable mode with OCA button.

    Dear Experties,
    I am new to CRM WEB UI ,I have got the requirement to develope a view with OCA button on it and when i click on the button it should direct to the second view  and it should open with edit mode.
    The Source view is table type and target view is form type.
    I am able to achieve this but unable to get it in editable mode.
    I have added the below code in do_prep_output method but getting dump  at the line
    lr_entity ?= me->typed_context->EMAINLEG->collection_wrapper->get_first( ).
    The error message is
    Long text During a 'CAST' operation ('?=' oder 'MOVE ? TO')a type conflict occurred. The source type '\CLASS=CL_BSP_WD_MIXED_NODE' is not compatible for assigning with the target type '\CLASS=CL_CRM_BOL_ENTITY'.
    Please somebody help me on this
    lv_display = me->view_group_context->is_view_in_display_mode( me ).
      IF lv_display EQ abap_false.
      ELSE.
         me->view_group_context->set_view_editable( me ).
      ENDIF.
      DATA:    lr_tx           TYPE REF TO if_bol_transaction_context,
              lr_entity       TYPE REF TO cl_crm_bol_entity,
               lr_comp type REF TO ZL_BT131QI__BSPWDCOMPONEN_IMPL.
      lr_comp ?= me->comp_controller.
      Check lr_comp is BOUND.
      lr_entity ?= lr_comp->typed_context->BTADMINI->collection_wrapper->get_current( ).
      CHECK lr_entity IS BOUND.
      IF lr_entity->lock( ) = abap_true.
        me->view_group_context->set_view_editable( me ).
      ENDIF.
      lr_entity ?= me->typed_context->EMAINLEG->collection_wrapper->get_first( ).
      WHILE lr_entity IS BOUND.
        lr_entity->lock( ).
        lr_entity ?= me->typed_context->EMAINLEG->collection_wrapper->get_next( ).
      ENDWHILE.
    The following error text was processed in the system:
    Source type \CLASS=CL_BSP_WD_MIXED_NODE is not compatible, for the purposes of assignment, with target type \CLASS=CL_CRM_BOL_ENTITY
    Exception Class CX_SY_MOVE_CAST_ERROR
    Error Name MOVE_CAST_ERROR
    Program ZL_ZBT131QI_EMAINLEG_IMPL=====CP
    Include ZL_ZBT131QI_EMAINLEG_IMPL=====CM00C
    ABAP Class ZL_ZBT131QI_EMAINLEG_IMPL
    Method EH_ON_EDIT
    Line 33 
    Long text During a 'CAST' operation ('?=' oder 'MOVE ? TO')a type conflict occurred. The source type '\CLASS=CL_BSP_WD_MIXED_NODE' is not compatible for assigning with the target type '\CLASS=CL_CRM_BOL_ENTITY'.
    Thanks in advance!!!

    Hi,
    in CRM a context can consist of model nodes,  value nodes and, unfortunately, mixed nodes. While mixed nodes implement the same interface as model nodes they can't be casted into a CL_CRM_BOL_ENTITY directly. Instead you need to perform the following conversion in order to get the model node from the mixed node:
    DATA:  mixed_node     TYPE REF TO cl_bsp_wd_mixed_node,
               entity              TYPE REF TO cl_crm_bol_entity.
    mixed_node = me->typed_context->EMAINLEG->collection_wrapper->get_first( ).
    entity = ?= mixed_node->if_bsp_wd_ext_property_access~get_model_node( ).
    Best,
    Christian

  • Opening document in frame with javascript

    Hello.
    I've got problem with javascript on Safari 4 (both and on Win and on MacOS), while trying to open html document in frame.
    Reproducing the problem is quite difficult, so I'll begin with html source.
    I have one frame in index.html file:
    +<iframe id="topframe" name="topframe" scrolling="no" frameborder="0" width="980" height="580" src="form1.html";></iframe>+
    form1.html looks like this:
    +<input type="button" id="action" name="action" value="Make action" onclick = "document.getElementById('actionframe').src='dir/action.html';">+
    +<input type="button" id="sel" name="sell" value="..." onclick = "top.frames[['topframe']].location.replace('form2.html');">+
    action.html source is:
    +<script type="text/javascript">parent.document.getElementById('sel').click();</script>+
    So, when you open index.html, you see two buttons: first opens form2.html in the same frame, second opens dir/action.html in other frame. While dir/action.html just "clicks" the first button.
    Basically both buttons does the same.
    The problem is, that Safari fails to open form2.html with first button. Somehow Safari thinks that form2.html is in /dir/, like action.html is. So you get this error:
    *Not Found*
    *The requested URL /safari_test/dir/form2.html was not found on this server.*
    This example works on all major browsers, except Safari 4. Even on Safari 3 it works fine.
    I made an example, so you can test it here:
    http://82.135.245.49/safari_test/
    Message was edited by: Elvinas

    Have you tried putting the full URL instead of just form2.html?
    Second option is to move the file to that directory and change it for the other browsers.
    Third option is to stop using frames altogether, they are generally considered bad practice and can cause issues with browsers that aren't IE.

Maybe you are looking for

  • Problems with IR transmitter

    I currently control all my AV equipment using an IR receiver that is attached to the TV and transmitters located in the AV closet. This works fine for all my components (receiver, DVR, DVD player, etc.), except for some reason my new Apple TV will no

  • Stock Removal using Pick Point

    Hi all, I have configure Storage Type 100 with SU managed and a pick point ST 001. Once the TO is generated from delivery, the TO information will be from source ST100 to destination ST916. So I would like to know, how to identify the SU is arrived p

  • Ejb ref resolution error

    Dear all, I try to set up a simple ejb environment. I managed to run the converter example from the JEE tutorial bundle in the NetBeans / Glassfish environment. Then I tried to write a standalone java client. The code consists in essential of the sta

  • F4 help entries

    Dear Friends, how to remove filter from particular field in the table. Thanks Vishal bhagwat.

  • I downloaded Photoshop but the custom shapes tool isn't there, some of the others aren't working, and I get this box saying I'm a trial user when I've paid.  Any suggestions?

    Hi, A couple of days ago I purchased and downloaded the creative cloud photoshop but now that I'm using it some of the tools aren't there.  Also, when I open it I get a message saying that I'm a trial user even though I'm not.  Is it me, or did the p