# Accessing named component methods in class

**URL:** <https://forums.fusetools.com/t/accessing-named-component-methods-in-class/6426>\
**Category:** How-to Discussions\
**Created:** [March 6, 2018, 9:14am UTC](https://forums.fusetools.com/t/accessing-named-component-methods-in-class/6426 "2018-03-06T09:14:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ganaited](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/ganaited/32/161_2.png) [@ganaited](https://forums.fusetools.com/u/ganaited)\
**Post date:** [March 6, 2018, 9:14am UTC](https://forums.fusetools.com/t/accessing-named-component-methods-in-class/6426/1 "2018-03-06T09:14:32Z")

</div>

Hello,

It kind of dazzles and confuses me: is there a way to access class named methods? What the context?

For example:

- a main page:

```auto
<App>
  <Navigator ux:Name="navigation">
    <SomePage ux:Name="somePage">
      <WhileActive>
         <Clicked><ScrollTo Target="scrollViewTargetInSomePage" Position="0,0" /></Clicked>
     <WhileActive>
   </SomePage>
  </Navigation>
</App>

```

- and SomePage class:

```auto
<Page ux:Class="SomePage"><ScrollView ux:Name="scrollViewTargetInSomePage" /></Page>

```

Thanks a lot,

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [March 7, 2018, 7:40am UTC](https://forums.fusetools.com/t/accessing-named-component-methods-in-class/6426/2 "2018-03-07T07:40:39Z")

</div>

You can only access nodes by their `ux:Name` from the same data context. In your case, it’s inside of the `ux:Class` definition for `SomePage`.

The context boundaries can be crossed in some ways. One is using [ux:Dependency](https://www.fusetools.com/docs/ux-markup/dependencies), another which may fit you could be [UserEvents](https://www.fusetools.com/docs/ux-markup/user-events).
