Avatar billede mason Nybegynder
02. juni 2005 - 09:55 Der er 1 løsning

Ændre layout på MediaPlayBack Component

Jeg afspiller film via MediaPlayBack Componentet i Flash MX 2004 Pro. Men den har selvfølgelig et standard layout (Den blå baggrund) Er det muligt at ændre udseendet på dette? F.eks. farven?
Avatar billede mason Nybegynder
10. juni 2005 - 19:30 #1
Til andre med samme problem vidergiver jeg her løsningen, venligst givet af en FlashFaq Flasher:

Using the MediaDisplay and MediaController components
Suppose you decide that you want more control over the look and feel of your media display. For this reason, you need to use the MediaDisplay and MediaController together to provide the desired experience. The following example shows the equivalent steps from the previous example that will create a Flash application that displays your CD and DVD preview media.

To create a Flash document that displays a CD or DVD preview:
In Flash, select File > New; then select Flash Document.
In the Components panel (Window > Development Panels > Components), double-click the MediaController and MediaDisplay components, which places an instance of each component on the Stage.
Select the MediaDisplay instance and enter the instance name myDisplay in the Property inspector.
Select the MediaController instance and enter the instance name myController in the Property inspector.
Launch the Component Inspector panel from the Property inspector and set your media type according to the type of media that will be streaming (MP3 or FLV).
If you selected FLV, enter the duration of the video in the Video Length text boxes in using the format HH:MM:SS.
Enter the location of your preview video in the URL text box. For example, you might enter  http://my.web.com/videopreviews/AMovieName.flv.
Set the desired options for the Automatically Play, Use Preferred Media Size, and Respect Aspect Ratio check boxes.
Select the MediaController instance and, in the Component Inspector panel, set your orientation to vertical by setting the horizontal property to false.
In the Component Inspector panel, set backgroundStyle to None.
This specifies that the MediaController instance should not draw a background but should instead fill the media between the controls.

Use a behavior to associate the MediaController and MediaDisplay instances so that the MediaController instance accurately reflects the playhead movement and other settings in the MediaDisplay instance, and so that the MediaDisplay instance responds to user clicks:
Select the MediaDisplay instance and, in the Property inspector, enter the instance name myMediaDisplay.
Select the MediaController instance that will trigger the behavior.
In the Behaviors panel (Window > Development Panels > Behaviors), click the Add (+) button and select Media > Associate Display.
In the Associate Display window, select myMediaDisplay under _root and click OK.
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester