Having a class of scrolling for an entire project.

Hello

I use blitmask of greensock and scrolling in a project Air iOS, and wonder what the best way is to set up so you can have a class of central scroll that all classes can add clips to.

It is possible to have a model global var that holds the movieclip you want to scroll? That is to say a class sends one of his moveiclips to the global var, and the global var distributes one even to your ScrollBar class, which removes the current MC it scrolls and injects the other from the model?

Or I'll get a new instance of the ScrollBar class in every class that needs scrolling?

See you soon

I think you're right that LoginController is in the wrong place for this. When I asked on the final goal, I meant more conceptually what you trying to accomplish with this wheel. Without more information that goes to the heart of who and also more info on how your Classes are actually interrelated, I still can't you give a better application than sending an event customized with the MovieClip in it.

However, I think that there is a smell of bad design on it - why the hell these controllers seen references to these MovieClips, they are not to show? There must be some deeper 'something' on how these could be made/managed without this awkwardness. Where are these components that you add to the wheel, when they are not in the scroll?

In the absence of type only of information, I can only give you an example of my first implementation (it is true that sort of shit) suggestion.

public interface {IEventBusClient}

public function get eventBus (): IEventDispatcher;

public function set eventBus(value:IEventDispatcher):void;

}

SerializableAttribute public class MovieClipEvent extends Event {}

SEND_TO_SCROLLER:String = "sendToScroller"; static const pubis

public var movieClip:MovieClip;

public void MovieClipEvent (type: String, mc:MovieClip) {}

Super (true false, type,);

movieClip = mc;

}

Override public function clone (): Event {}

return new MovieClipEvent (type, movieClip);

}

}

/ public class SomeController implements IEventBusClient {}

protected var _eventBus:IEventDispatcher;

public function get eventBus (): {IEventDispatcher

Return _eventBus;

}

public function set {eventBus(value:IEventDispatcher):void}

_eventBus = value;

}

protected function invokeScroller(e:SomeEventType):void {}

If (_eventBus & someMovieClip) {}

_eventBus.dispatchEvent (new MovieClipEvent (MovieClipEvent.SEND_TO_SCROLLER, someMovieClip);

}

}

}

/ public class ScrollerController implements IEventBusClient {}

protected var _eventBus:IEventDispatcher;

protected var _scroller:ActualGreenSockTypeGoesHere;

public function get eventBus (): {IEventDispatcher

Return _eventBus;

}

public function set {eventBus(value:IEventDispatcher):void}

If (_eventBus! = value) {}

If {(_eventBus)

_eventBus.removeEventistener (MovieClipEvent.ADD_TO_SCROLLER, updateScroller);

}

_eventBus = value;

If {(_eventBus)

_eventBus.addEventistener (MovieClipEvent.ADD_TO_SCROLLER, updateScroller);

}

}

protected function updateScroller(e:MovieClipEvent):void {}

remove the old clip from whatever the said api greensock

var mc:MovieClip = e.movieClip;

If {(mc)

Add movieclip to scroller using greensock api

}

}

}

You can then define eventBus on instances of those Classes, to the list of display or an event dispatcher that you make to the purposes of the provision of communication. I would like to have a separate event dispatcher which serves as a communication backbone in space 'data' (and I mean here the model classes and controller), but I also sometimes fills this variable with a reference to the display list or a more local event bus, according to what I am doing - the thing that makes this extremely powerful technique is that you can get great flexibility, fair, based on what opposes you pass as the event bus.

I think I made this suggestion before, but in case I don't have, you can consider using RobotLetg, since it can automate the process of delivery of these references.

Tags: Adobe Animate

Similar Questions

  • Application of property Caption Text for an entire project changes

    I tried to make a change in a text caption like "BOLD" etc. and it applies to all of the same type of legend in an entire project. This feature really works?

    Hi Benoit Christmas of Tilly and welcome to our community

    I don't think that it apply to all will work in this case. I believe it does not take into account formatting of fonts and is intended for things like the Type of legend, placement etc.

    If you are looking for an easy way to apply things like "BOLD" and whatnot, you can review the method of clicking file > export > project captions and subtitles. This should create a Microsoft Word file. You can then make the changes in Word and save the file. I stand to be corrected here, but I think that when you return back in Captivate via file > import > project captions and subtitles, formatting changes will come along for the ride.

    See you soon... Rick

  • Is there a bug with the maintenance of interaction of the Glossary for the entire project?

    Greetings,

    I've seen in other posts (Cp6) that there is a known bug with the maintenance of interaction available in a project glossary.

    Maybe my problem can help further this question - or maybe someone can post tips on how to solve this problem.

    I use a trial version of the Cp7 and followed the advice in this tutorial: http://www.YouTube.com/watch?v=wTEF-56V1Z4

    I found that if I left 'Visible output' box unchecked for the button closure (as in the tutorial), I don't see the glossary at all.

    Similarly for the button I created for the glossary - I couldn't have hidden or I don't see it.

    Another problem: the close button in the glossary (which is grouped in the interaction) in a first time appeared with the glossary, but then decided to appear on following slides without it (but in the same location).

    Everyone has been able to follow the advice on the above tutorial link successfully and is there another tutorial I can watch or read about it? I really want to provide access to the glossary on multiple slides and during quizzes. (And Yes, I'll buy a license - although the number of bugs I encounter creeps upward!)

    Thank you

    Jacqui.

    Hello

    Unchecking 'visible output' means the Group glossary will be invisible in the output until it is made visible by an action. In this case, the action that make visible is assigned to the Glossary button.

    Make sure that:

    • Glossary button, button Exit and the Widget are defined "Rest of project" accordion Timing.
    • EXIT button is set to Place object on top in the accordion of Timing.

    Anthony

  • Pre-test slide turns off the skin for the entire project?

    Is this true? If so, how do you get around it? You use the widget bar of reading? Manually create your own navigation?

    Yes, it disables the PlayBar to the project. I much prefer my own navigation, boredom, Vikas sorry ask because using a PlayBar in combination with questions before the test. In addition I don't think that this widget is supported for the release of HTML5 and it is certainly not suitable for mobile devices.

    Navigation buttons are now easy to create using the form buttons. And at least you can adapt to the style of the project.

    Lilybiri

  • Apply a style sheet for an entire project after importation

    Hello

    I was wondering if it is possible to apply a style sheet to a project after its importation of a Word to RoboHelp8 document.

    When I import a document into a project of RoboHelp8, it won't let me apply a stylesheet at this time, so I was wondering if it would be possible to apply the stylesheet desired to the whole of the project once the import process is completed.

    Thank you

    Bogdan

    Select all subjects in the list of topics, right-click for properties, and then select the style sheet in the appearance tab.

    Good luck

    Leon

  • Revisional Subversion: want the same revision number for the entire project tree

    Hi... currently I use oracle JDeveloper 11.1.1.2.0 with Subversion and VisualSVN Server.
    I created the user repository. .. .but after change assumes that EmployeeEO.xml its showing 2-3 after validation and after that revision engage DepartmentEO.xml his display 4... OK
    but when I go to new new copy i.e.checkout his watch do not total copy with the same number of revision for all files... pls I want the same number of revision for all files...

    User555,

    Please note: what you see is correct. Subversion is not CVS; It works the same way. The behavior you are seeing is the way Subversion works, and there's nothing that related to JDeveloper - you can see the same behavior by using the SVN command line client.

    I suggest you have a reading of http://svnbook.red-bean.com/ (especially the http://svnbook.red-bean.com/en/1.5/svn.basic.in-action.html#svn.basic.in-action.mixedrevs that describes how new users are often confused by mixed revisions).

    I quote a phrase of this document for you:

    Mixed revisions are normal

    John

  • How to eliminate the edges of the image for the entire project?

    I finish a project of 24 fps 1920 x 1080 in CS4. I want to cut the edges of the image to the film because the edges of the clips jump from one side to another a little. How can I do this?

    Tim Flippance wrote:

    Thank you Ann. What paste attributes mean? This means that I can all 130 clips in the film in a single action of culture?

    Just clip on the clip with the effect of cropping and choose copy.  Then select all the other clips only and right click and Paste attributes.

  • Draggable object throughout the entire project?

    I need to create an object, which

    1. appears with a toggle button (show/hide),
    2. must be movable,
    3. contains subtitles (closed captioning) for audio files,
    4. contains a button to get to the next slide. When you enter the next slide, the draggable object must stay on the same position as on the front blade, but the text of the following subtitle should be considered.

    Is it still possible in Captivate?

    You cannot drag a group or. Only unique objects can be dragged. D & D cannot be timed for an entire project.

    Subtitle (CC) cannot be moved or.

    I'm sorry, but without probably much JS programming, this isn't something that can be easily created.

  • Generate an entire project Jadoc or application

    Using JDeveloper how you create Javadoc for the entire project or application

    Hello

    Select a project, and then choose Build--> Javadoc in the JDeveloper menu

    Frank

  • Need to disable acceleration hardware and smooth scrolling for users on a Remote Desktop Session.

    Hello
    I need to disable acceleration hardware and smooth scrolling for any user that connects to an RDS Server. I messed up the mozilla.cfg and created an autoconfig.js file. I guess I'm missing something along the way.

    This is currently my autoconfig.js
    Pref ("general.config.filename", "mozilla.cfg");
    Pref ("general.config.obscure_value", 1);
    Pref ("app.update.channel", "liberation");

    Mozilla.cfg
    Smooth Scrolling disabled
    lockpref ("general.smoothScroll.disabled", true);
    disables hardware acceleration
    lockPref ("layers.acceleration.disabled", true);
    lockPref ("gfx.direct2d.disabled", true);

    All that I'm missing? When I restart the two options are always checked in the options.

    Thank you!!

    Hi b1gt3x, you use a clear cfg file, you'll want to put this in your instead of autoconfig.js:

    pref("general.config.obscure_value", 0);
    pref("general.config.filename", "mozilla.cfg");
    

    In addition, you will have to make lockPref with a capital P in any case - that it reacts very sensitive to spelling errors...
    http://kb.mozillazine.org/Locking_preferences.

  • How can you cancel the download of an update that was started by after having pressed the button "Check for Updates" in the window "On Firefox", please?

    How can you cancel the download of an update that was started by after having pressed the button "Check for Updates" in the window "On Firefox", please? If possible, please cover all platforms, Mac, Windows, Linux, although the first mentioned is what currently applies to my situation.

    Thank you.

    Such a download is usually recorded in a updates or updates folder in the program folder or the Firefox application.
    You can delete this folder to cancel the download.

    If the files have already been downloaded, then delete the files in the folder updates\0 and updates.

    Mac: /Applications/Firefox.app/updates "/path_to/Firefox.app/Updated.app"
    Linux: "/path_to/firefox/updated"
    Windows: C:\Users\<user>\AppData\Local\Mozilla\Firefox\Mozilla Firefox\updates
    
  • implementation of the Hosts file on the server for the entire network?

    I see a lot of information on how to edit the local Hosts file on individual computers. But, is it possible to edit a Hosts file and have effect throughout the network?

    We have a network of a little over half a dozen of Mac mini, who take their DNS information from another Mac Mini running the application server OSX (under El Capitan). This server is the primary DNS machine for the network. I want to implement a Hosts file for the entire network.

    Parental control seems to be broken in OSX El Capitan, so this seems like the best next to us, short option to buy some third-party service, which I prefer not to do.

    I think that dnsmasq installation on your Mac server and configuration of all your computers to use as your "DNS Server" will achieve what you want.

    See osx https://oracle-base.com/articles/misc/dnsmasq-for-simple-dns-configurations-mac-

    Why do you feel you must do this?

  • How can I make a cell formula will apply for the entire column? For example D2 appears B2 - C2. How can I copy this formula for each cell in the column?

    How can I make a cell formula will apply for the entire column? For example D2 appears B2 - C2. How can I copy this formula for each cell in the column?

    If you want the formula is the same (B2 - C2) in the cell of each column you must change it as ($B$ - 2$ C$ 2). Then copy it, select the whole column and paste.

  • How can I delete a file on my iOS device that I downloaded from my iCloud? I just want to keep the Preview on my iOS device without using my storage iOS for the entire file.

    How can I delete a file on my iOS device that I downloaded from my iCloud? I just want to keep the Preview on my iOS device without using my storage iOS for the entire file. This means that the file is still in the iCloud and available to be downloaded to any device.

    In practice, I want to be able to scan and download through my documents located in my iCloud and once I didn't need them on my iOS device I would like 'load their return to the cloud' to my storage of the iOS device is not used.

    Thank you in advance to the community!

    Max

    The only way I found to do that once a file has been downloaded is to remove it and add it again through either from Finder on Mac or iCloud.com.

  • How to change the font to 'request' a font sets for an entire façade

    Hello together,

    normally all my frontpanels use the apllication font. Now, we have mixed operating systems. Some are still using windows xp, the other windows 7. In windows 7, the standard application font has changed. Under my programs under windows 7 results in ugly frontpanels, according to the new standard application font.

    Y at - it an easy way to set the font for an entire façade. I don't want to score every text and change the font type.

    Thank you very much greetings,.

    Michael

    Press Ctrl + A (select all) and change the font. All the fonts selected style will arise.

Maybe you are looking for