How to control videodisplay functions like videodisplay.stop, pause(), close etc from the presentation model? But I need to control it from Presentation model. Custom events is not my option, as that is costly.
Flex with Presentation model
210 Views Asked by Fresher4Flex At
2
There are 2 best solutions below
0
Romain F.
On
I used the Binding tag to solve a similar problem (calling centerAt on an ESRI Map) :
<fx:Binding source="model.videoState" destination="videoState"/>
<fx:Script>
<![CDATA[
private function set videoState(value:String):void
{
// do whatever is to be done
This avoid custom events, and preserve the pattern : your presentation model does not know about the video display.
Related Questions in ACTIONSCRIPT-3
- [Actionscript]How to display the information inside an array of objects
- How to set a colour variable in JS
- When using INSERT OR REPLACE INTO in SQL is there any way to tell if a record was inserted as new or replaced in SQL for AS3?
- How to inject a bean in a view with Crux
- AS3 - Unable to resize Image width and height
- How do I move Pac-Man smoothly in AS3?
- Export Release Build is not working in Adobe Flash Builder, It does nothing on Finish button
- 1009 Error for a Character Skin Symbol in AS3
- Issue setting domain memory
- Implicit coercion of a value with static type Object to a possibly unrelated type Number
- Defer implementation of interface functions to child class
- Simple top 3 scores from an array to textfield
- Need ActionScript 3 coding for input boxes that will determine amount of color fill in a movieclip
- AS3 Caling MC on Parent Timeline from Child
- 2 error problems for simple music players
Related Questions in APACHE-FLEX
- How to Run flash applications in any browsers with out adding manual extensions in 2023
- Error: Infra Phase complete, 0/0 resources updated in 02 seconds
- How to replace HTMLLoader to display PDF inside air application
- Air desktop application CSS file and image url
- Flex conditional statement: set VGroup height according to Label Text
- D365 - Azure Devops - Git Repo - How to check the history of a file which is stored in separate folders in the Main branch
- How to access data from row in Grid while selecting it so that further it can be used in Text Field below in Adobe Flex (ActionScript)?
- Actionscript: Access of possibly undefined property id
- Adobe flex in 2021
- How i can add cron entry without time using chef
- Equivalent of parent parentDocument from flex
- Captive runtime packaging issue (Failed to load the AIR Runtime) under Catalina 10.15.7 with ADT
- Getting error while running curl command via chef
- How can I create a context menu on the fly in a textArea in AS3/AIR?
- Flex SDK installer fails to download https://github.com/swfobject/swfobject/archive/2.2.zip
Related Questions in FLEX4.5
- Bootstrap - image enlarged with flex
- Flex conditional statement: set VGroup height according to Label Text
- Adobe AIR Flex : Dynamically change the width of VGroup
- How to return the primary key sequence number after MySQL insert
- Migrating Adobe Flex web application to Adobe AIR package application - ExternalInterface.call failing
- Moving from Flex - mxml (action scripts) to another technology
- How to include an actionscript function from an external file in flex4/MXML/Spark?
- Adobe Flex data width issues
- Set Value in Datagride for dynamic column
- Adobe flex createPopUp() opening same instances when clicked
- Sort Array Collection Using Two Fields in Flex
- Array error in actionscript 3.0
- In flex 4.5 parentDocument did not working as in flex 4.0. How to call parentDocument in flex 4.5?
- How this Flex front end application is connected to my back end application? Where the mx:RemoteObject URL endpoint URL are defined?
- How to correctly deploy a FLEX\FLASH swf application?
Related Questions in VIDEODISPLAY
- JavaScript/HTML: Displaying Only 4 Videos in 'Continue Watching' Section Without Interfering with Other Cards
- Difficulties with video display
- Is there any way to add time range in videos using Python just like in YouTube videos
- Flutter ARKit Video Node
- Videos on Wordpress page loading on desktop but not on mobile
- decode some pixels of 4k video as 1080p
- How to play a mp4 video with Apache Royale?
- raspberry pi 3 (raspbian on sd card ) doesn't boot using linux mint laptop
- How to create a window in browser which has a NSWindow handle?
- MediaPlayerState.PLAYBACK_ERROR on a VideoDisplay using AIR on OSX
- how to reload VideoDisplay?
- Flex - videoDisplay freezes for seconds when jumping to cuepoint?
- How do i separate a video into frames without displaying all the frames in different figures?
- can't make spark VideoDisplay work in as3 project
- load youtube video in videodisplay flex
Related Questions in PRESENTATION-MODEL
- SwiftUI randomly crashes on presentationMode?.wrappedValue.dismiss()
- JavaFX: Bindings with presentation model
- Presentation Model vs MVP (Passive View)
- Data binding: presentation model and view, 3rd party libs in Android
- Using Presentation Model with complex custom controls (which have their own models)
- Java Swing and Presentation Model
- Presentation Model vs Passive View
- Difference between presentation model and MVVM
- Flex presentation model: should state be held in the view?
- Architecture for driving complex Use Cases
- Presentation Model for Android: how to wrap Model in Presentation Model?
- Is it possible to use the Presentation Model Pattern for a GEF-based RCP app with an EMF domain model?
- Flex with Presentation model
- What's the name of this type of View Presentation Style?
- insert rss data to database with wcf ria services using presentation model
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Take a peek at my code behind approach: you could just give the model an id and call methods on it. But i really don't think custom events are too costly.