/ Forside/ Teknologi / Multimedie & design / Flash / Spørgsmål
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Flash
#NavnPoint
bentjuul 4251
molokyle 1978
Klaudi 1488
jhvp 1265
pallenoc 1160
katekismus 1020
Fnollerpi.. 790
slander 510
Dr.Disco 500
10  Flash77 500
video flash visning
Fra : james25
Vist : 815 gange
100 point
Dato : 26-02-08 18:02

Hey !

Hvordan laver man videovisnig hvor der ikke forkommer nogen afspilningsknapper.
Noget i stil med http://www.jazzfestival.dk/Start.aspx
Der kører et banner i toppen som ikke kan "styres".

På forhånd tak !

Jazper

 
 
Kommentar
Fra : masc030686


Dato : 26-02-08 19:16

hvordan vil du ha knapperne skal kunne og er det as2 eller as3 du vil køre det i

Kommentar
Fra : james25


Dato : 26-02-08 19:54

Det er as2 ! Men det er ikke nogle knapper jeg skal have til at virke der imod bare et videobanner der kører af sig selv unden nogen styring. En importeret video der kan kører i baggrunden unden nogen mediastream eller play knapper...

Accepteret svar
Fra : masc030686

Modtaget 100 point
Dato : 26-02-08 21:19

prøv at følge denne instruks

1. Create a new Flash document called vidBanner.fla.

2. Select Modify > Document.

3. Change the dimensions of your FLA file, type 468 in the width text box and 60 in the height text box.

4. In the Library panel (Window > Library), select New Video from the Library options.

5. In the Video Properties dialog box, name the video symbol and select Video (ActionScript controlled).

6. Click OK to create a video object.

7. Drag the video object from the Library panel to the Stage to create a video instance.

8. With the video object selected on the Stage, type my_video in the Instance Name text box in the Property inspector (Window > Properties > Properties).

9. With the video instance still selected, type 105 in the width text box and 60 in the height text box in the Property inspector.

10. Drag the video instance to a position on the Stage, or use the Property inspector to set its x and y coordinates.

11. Select Frame 1 in the Timeline, and open the Actions panel (Window > Actions).

12. Add the following code to the Actions panel: var my_nc:NetConnection = new NetConnection();
my_nc.connect(null);
var my_ns:NetStream = new NetStream(my_nc);
my_video.attachVideo(my_ns);
my_ns.setBufferTime(5);
my_ns.play("http://www.helpexamples.com/flash/video/vbanner.flv");


13. Select Insert > Timeline > Layer to create a new layer, and name it button.

14. Select the Rectangle tool in the Tools panel.

15. In the Colors section of the Tools panel, click the pencil icon to select the Stroke color control.

16. Select No Color, which disables the rectangle's outline.

17. Drag the pointer diagonally across the Stage to create a rectangle.
The size of the rectangle does not matter because you'll resize it by using the Property inspector.

18. Click the Selection tool in the Tools panel then click the rectangle on the Stage to select it.

19. With the rectangle still selected, type 468 in the width text box and 60 in the height text box in the Property inspector. Then change the X and Y coordinates (X and Y text boxes) to 0.

20. With the rectangle selected on the Stage, press F8 to change the rectangle into a symbol.

21. In the Convert to Symbol dialog box, type invisible btn in the Name text box, select Button, and then click OK.

22. Double-click the new button on the Stage to enter symbol-editing mode.
The rectangle is currently on the first Up frame of the button you created. This is the Up state of the button--what users see when the button is on the Stage. However, you want the button to not be visible on the Stage, so you need to move the rectangle to the Hit frame, which is the hit area of the button (the active region that a user can click to activate the button's actions).

23. Click the keyframe at the Up frame, and hold down the mouse button while you drag the keyframe to the Hit frame.
You can now click in the entire banner area, but there is no visual appearance of the button on your banner.

24. Click Scene 1 to return to the main Timeline.
A teal rectangle appears over the banner area, representing the invisible button's hit area.

25. Select the button you created, open the Property inspector, and type inv_btn in the Instance Name text box.

26. Select Frame 1 on the Timeline, and then type the following code in the Actions panel: inv_btn.onRelease = function(){
getURL("http://www.adobe.com");
};

27. Make other modifications to the banner, such as adding graphics or text.

28. Select Control > Test Movie to test the banner in Flash Player.

Godkendelse af svar
Fra : james25


Dato : 26-02-08 22:39

Sådan ! Det var lige det jeg manglede !

Tusind tak !

Kommentar
Fra : james25


Dato : 27-02-08 00:13

Lige som jeg troede det gik godt går det galt igen. Når jeg skifter linket ud til videoen sker der ikke noget. Stigen jeg bruger er http://s184.photobucket.com/albums/x243/jazperl/?action=view¤t=sax.flv

som er et lille video klip. Ellers retter jeg ikke i noget fra actionscrpitet. Kan du se fejlen !


Du har følgende muligheder
Eftersom du ikke er logget ind i systemet, kan du ikke skrive et indlæg til dette spørgsmål.

Hvis du ikke allerede er registreret, kan du gratis blive medlem, ved at trykke på "Bliv medlem" ude i menuen.
Søg
Reklame
Statistik
Spørgsmål : 177577
Tips : 31968
Nyheder : 719565
Indlæg : 6409071
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste