[Flash] Post je flash stuff maar weer - part 1

Pagina: 1
Acties:
  • 281 views sinds 30-01-2008
  • Reageer

  • jlammertink
  • Registratie: Oktober 2004
  • Laatst online: 11-04-2021
Afbeeldingslocatie: http://home.zonnet.nl/jflammertink/Flashtopic/header.jpg
Afbeeldingslocatie: http://home.zonnet.nl/jflammertink/Flashtopic/head01.jpg

[Flash] Post je flash stuff maar weer - part 1
Dit topic is bedoeld voor flash-ers die hun werk willen laten zien of problemen zijn tegengekomen waar ze hulp bij nodig hebben.

Hoe plaats ik een afbeelding?
Houd de volgende punten in gedachten als je een plaatje post:

» Denk aan de layout van het forum: een afbeelding kan maximaal 600 pixels breed zijn, zonder dat deze de layout beïnvloedt.
» Vaak is het beter om een kleine afbeelding te posten (b.v. 200 x 150px) en deze te linken naar de originele afbeelding.
» Dit houdt het overzichtelijk en het gebruiken van een kleinere afbeelding vermindert ook de laadtijden van de pagina.

Codes voor het plaatsen van een afbeelding:
Een afbeelding op ware grootte plaatsen:

code:
1
[img]http://www.mijn-site.nl/mijn-afbeelding.ext[/img]


Een kleine afbeelding als link naar een grotere afbeelding:

code:
1
2
3
[url=http://www.mijn-site.nl/grootte-afbeelding.ext]
[img]http://www.mijn-site.nl/kleine-afbeelding.ext[/img]
[/url]


Voor alle andere UBB-codes kan je hierheen gaan.

Afbeeldingslocatie: http://home.zonnet.nl/jflammertink/Flashtopic/head02.jpg
Afbeeldingslocatie: http://home.zonnet.nl/jflammertink/Flashtopic/head03.jpg

Nederlands
...

Engels
» Flash Kit
» FreeFlashTutorials.com
» Tutorialized.com

Afbeeldingslocatie: http://home.zonnet.nl/jflammertink/Flashtopic/head04.jpg

Nederlands
» FlashFocus

Engels
...

Afbeeldingslocatie: http://home.zonnet.nl/jflammertink/Flashtopic/head05.jpg

[Flash] Post je flash stuff maar weer - part 1

[ Voor 255% gewijzigd door jlammertink op 10-01-2005 11:22 ]


  • jlammertink
  • Registratie: Oktober 2004
  • Laatst online: 11-04-2021
Hier alvast een vraag van mijn kant.

Ik wil door op een bepaalde toets te drukken (bv. toets x) een geluidje afspelen. Ik geloof dat iedere letter een eigen cijfer heeft maar ik kan het ook mis hebben. Ik kan dit nergens anders vinden dus hoop dat iemand me hiermee kan helpen.

  • Canard
  • Registratie: Oktober 1999
  • Laatst online: 10-05 16:48
jlammertink schreef op donderdag 06 januari 2005 @ 18:38:
Hier alvast een vraag van mijn kant.

Ik wil door op een bepaalde toets te drukken (bv. toets x) een geluidje afspelen. Ik geloof dat iedere letter een eigen cijfer heeft maar ik kan het ook mis hebben. Ik kan dit nergens anders vinden dus hoop dat iemand me hiermee kan helpen.
Heb eerst al eens gekeken in de help van Flash? Dat lijkt me toch de eerste plek waar je gaat zoeken. Ken je de vertaling van 'toets' in het Engels? Dan moet je een heel eind kunnen komen.

  • jlammertink
  • Registratie: Oktober 2004
  • Laatst online: 11-04-2021
Canard schreef op donderdag 06 januari 2005 @ 18:44:
[...]


Heb eerst al eens gekeken in de help van Flash? Dat lijkt me toch de eerste plek waar je gaat zoeken. Ken je de vertaling van 'toets' in het Engels? Dan moet je een heel eind kunnen komen.
Kan het dus zo gauw niet vinden dus mis. wel handig als iemand het hier wil posten... ook voor anderen :)

  • Canard
  • Registratie: Oktober 1999
  • Laatst online: 10-05 16:48
vooruit dan

Java:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// create eventlistener object
var myListener:Object = new Object();

// event that should be called when a key is pressed
myListener.onKeyDown = function ()
{
    trace("key that is pressed: "+Key.getCode())
    
    if (Key.getCode() == Key.SPACE)
    {
        _root.mySound.start();
    }
}

// add the created eventlistener to keypresses
Key.addListener(myListener);

// assumes the sound is in the library with a linkage name as 'mysound'
_root.mySound = new Sound();
_root.mySound.attachSound("mysound");
jlammertink schreef op donderdag 06 januari 2005 @ 18:37:Er komt nog een betere start post maar pas wanneer ik zeker weet dat dit topic goed zal lopen.
Ik denk dat een goede startpost juist kan zorgen voor een succesvol topic.

[ Voor 36% gewijzigd door Canard op 06-01-2005 19:12 ]


  • jlammertink
  • Registratie: Oktober 2004
  • Laatst online: 11-04-2021
Canard schreef op donderdag 06 januari 2005 @ 19:05:
vooruit dan

[...]

Ik denk dat een goede startpost juist kan zorgen voor een succesvol topic.
bedankt, ja ik ga er morgen aan werken

[ Voor 54% gewijzigd door jlammertink op 06-01-2005 19:19 ]


Verwijderd

het lijkt me dat zo`n "post je ... topic" iig niet is om je vragen over een prog te beantwoorden die je ook in een manual kan vinden. Daarnaast kan je jammer genoeg in dit topic alleen maar linkjes posten en echt geen flash-dingetjes. Dus van een echt "post-topic" kan nooit echt sprake zijn imho.

[ Voor 5% gewijzigd door Verwijderd op 06-01-2005 19:38 ]


Verwijderd

Post hier je flash vragen maar weer :+

ik had deze even snel bedacht in flashMX (wel super-slordig maarja het werkt)
code:
1
2
3
4
5
6
7
8
9
10
onClipEvent(keyDown) 
{
    for (i=0;i<255;i++)
    {
        if (Key.isDown(i)==true)
        {
            trace(i);   
        }
    }
}


Anyway zou een leuke topic kunnen zijn, nu is het begin/inkopper een beetje vreemd..

[ Voor 8% gewijzigd door Verwijderd op 06-01-2005 20:12 ]


  • XangadiX
  • Registratie: Oktober 2000
  • Laatst online: 25-03 10:55

XangadiX

trepanatie is zóó kinderachtig

ja goed idee zo'n topic, lijkt me interessant

offtopic:
wat is er mis met de online help van macromedia (en idd met f1?)
http://www.macromedia.com...script_dictionary393.html

en wat doet die vraag hier eigenlijk?
:/


maar het laatste wat ik met flash deed staat hier: http://www.friendsofsense.com/index.php?id=01148 maar dat is een plugin voor een VJ programma, en in essentie gewoon een slideshow. Nauwelijks interessant voor de meesten hier denk ik

[ Voor 36% gewijzigd door XangadiX op 06-01-2005 21:33 ]

Stoer; Marduq


  • jlammertink
  • Registratie: Oktober 2004
  • Laatst online: 11-04-2021
Iedereen die goede tutorials/sites weet post ze even dan kan ik ze in de startpost zetten.

[ Voor 8% gewijzigd door jlammertink op 06-01-2005 20:40 ]


  • Larixk
  • Registratie: Juli 2001
  • Laatst online: 22-06-2024

Larixk

met xk, ja

actionscript.org is wel aardig voor tutorials,
maar is het nou de bedoeling om hier werk te posten of alleen vragen?
De meeste post hier je stuff topics worden toch gebruikt om te laten zien waar men mee bezig is en niet zo zeer om doelgericht te vragen.

larixk


Verwijderd

http://www.tutorialized.com/tutorials/Flash/Actionscripting/

Ik weet nog een hele goede link, ik zal 'm morgen posten, staat gebookmarked op m'n werk.

  • BtM909
  • Registratie: Juni 2000
  • Niet online

BtM909

Watch out Guys...

XangadiX schreef op donderdag 06 januari 2005 @ 20:15:
maar het laatste wat ik met flash deed staat hier: http://www.friendsofsense.com/index.php?id=01148 maar dat is een plugin voor een VJ programma, en in essentie gewoon een slideshow. Nauwelijks interessant voor de meesten hier denk ik
Dope shit, sherlock 8)

offtopic:
Ik vraag me af of dit topic in samenwerking met mods is opgezet... Vind eerlijk gezegd de TS nogal rammelen en da's jammer, want dit mag wmb een groot topic worden :)

Ace of Base vs Charli XCX - All That She Boom Claps (RMT) | Clean Bandit vs Galantis - I'd Rather Be You (RMT)
You've moved up on my notch-list. You have 1 notch
I have a black belt in Kung Flu.


  • jlammertink
  • Registratie: Oktober 2004
  • Laatst online: 11-04-2021
Larixk schreef op donderdag 06 januari 2005 @ 20:43:
actionscript.org is wel aardig voor tutorials,
maar is het nou de bedoeling om hier werk te posten of alleen vragen?
De meeste post hier je stuff topics worden toch gebruikt om te laten zien waar men mee bezig is en niet zo zeer om doelgericht te vragen.
Je mag hier je werk laten zien, reageren op het werk van anderen, vragen stellen en voor de rest alles wat ik ben vergeten te noemen en te maken heeft met flash.

  • alienfruit
  • Registratie: Maart 2003
  • Laatst online: 09-05 23:44

alienfruit

the alien you never expected

Laatste project op het werk: http://www.nintendo-europ...ite/mario/nlNL/index.html
Waaronder morele ondersteuning, hulp, niet alleen gemaakt hoor :+ Je kan beter vragen wie er niet aan meegeholpen heeft ;)

[ Voor 41% gewijzigd door alienfruit op 06-01-2005 20:58 ]


  • jlammertink
  • Registratie: Oktober 2004
  • Laatst online: 11-04-2021
alienfruit schreef op donderdag 06 januari 2005 @ 20:57:
Laatste project op het werk: http://www.nintendo-europ...ite/mario/nlNL/index.html
Waaronder morele ondersteuning, hulp, niet alleen gemaakt hoor :+ Je kan beter vragen wie er niet aan meegeholpen heeft ;)
Ziet er erg leuk uit... ook loading screen is mooi gedaan _/-\o_

  • alienfruit
  • Registratie: Maart 2003
  • Laatst online: 09-05 23:44

alienfruit

the alien you never expected

Ja, er werkt hier een verdomt goede animator :)

[ Voor 6% gewijzigd door alienfruit op 06-01-2005 21:11 ]


  • Larixk
  • Registratie: Juli 2001
  • Laatst online: 22-06-2024

Larixk

met xk, ja

Laat ik mijn laatste werkje ook maar posten dan:
http://www.larixk.nl/archive/i/23.swf
(deeplinken naar swfs zuigt btw, hij staat beter op mn site maar kwil niet spammen ;))
Dit is een cellulaire automaat in flash. Tkam bij mijn studie (kunstmatige intelligentie) ter sprake, daar werkte we met een java-applett en het leek me geinig om een kleine versie in flash proberen te bouwen, dit bleek makkelijk te doen.

larixk


Verwijderd

aha.. het begint er al beter uit te zien!

link naar flash websites/tuto`s:

http://flashkit.com/
http://www.moock.org/


Anyway ben net 3 dagen bezig met een (nieuwe) game-engine.

Eerst een klein testje gemaakt in flash.
http://www.xs4all.nl/~elout/ggame/ggame004flash.html

Maar nu tijdelijk overgestapt naar java.
http://www.xs4all.nl/~elout/ggame/ggame07.html
(voor mij is het dan straks makkelijk te porten naar flash, director of C++)

Het idee is een soort van 'speedo pacman' worden met allerlij power-ups en extra`s,
maar dat zal nog wel een aantal weken kosten.

  • jlammertink
  • Registratie: Oktober 2004
  • Laatst online: 11-04-2021
Verwijderd schreef op donderdag 06 januari 2005 @ 21:16:
aha.. het begint er al beter uit te zien!

link naar flash websites/tuto`s:

http://flashkit.com/
http://www.moock.org/


Anyway ben net 3 dagen bezig met een (nieuwe) game-engine.

Eerst een klein testje gemaakt in flash.
http://www.xs4all.nl/~elout/ggame/ggame004flash.html

Maar nu tijdelijk overgestapt naar java.
http://www.xs4all.nl/~elout/ggame/ggame07.html
(voor mij is het dan straks makkelijk te porten naar flash, director of C++)

Het idee is een soort van 'speedo pacman' worden met allerlij power-ups en extra`s,
maar dat zal nog wel een aantal weken kosten.
ik ben benieuwd hoe het zal zijn met vijanden. ik zou het "ventje" wat je bestuurd als speler ook veranderen... een ventje dat loopt o.i.d. is een stuk leuker maar goed waarschijnlijk is dit gewoon een testomgeving?

  • XangadiX
  • Registratie: Oktober 2000
  • Laatst online: 25-03 10:55

XangadiX

trepanatie is zóó kinderachtig

@larikx : coooooool... een xlife in flash
* XangadiX was verslaafd aan xlife toen ie een jaar of 12 was

@celled: die packman is wel grappig maar ik vind het irritant dat ik niet 2 toetsen tegelijk ik kan drukken om sneller door hoeken heen te gaan, nu onderbreekt ieder hoek de snelheid een beetje

Stoer; Marduq


  • BtM909
  • Registratie: Juni 2000
  • Niet online

BtM909

Watch out Guys...

Tip mijnderzijds: Wil je trouwens dat part I uit je banner halen? Maakt het straks makkelijker (mocht er een deel II komen) dat bijna de gehele startpost direct kan worden overgenomen.

Ace of Base vs Charli XCX - All That She Boom Claps (RMT) | Clean Bandit vs Galantis - I'd Rather Be You (RMT)
You've moved up on my notch-list. You have 1 notch
I have a black belt in Kung Flu.


  • JvdM
  • Registratie: April 2004
  • Laatst online: 01-04 22:31

JvdM

<---->

eindelijk een flash topic :). Ik verwacht deze week mijn bestelde boek: Macromedia Flash MX 2004 Game Design demystified.

  • jlammertink
  • Registratie: Oktober 2004
  • Laatst online: 11-04-2021
BtM909 schreef op donderdag 06 januari 2005 @ 21:41:
Tip mijnderzijds: Wil je trouwens dat part I uit je banner halen? Maakt het straks makkelijker (mocht er een deel II komen) dat bijna de gehele startpost direct kan worden overgenomen.
Ik bewaar het Photoshop bestand dus dit kan later makkelijk aangepast worden. Ik vind het zo namelijk mooier en duidelijker.
-Jordy- schreef op donderdag 06 januari 2005 @ 21:50:
eindelijk een flash topic :). Ik verwacht deze week mijn bestelde boek: Macromedia Flash MX 2004 Game Design demystified.
Ja, ik wou me vanaf deze week wat meer verdiepen in flash en vond het al raar dat er zo weinig flash was op dit forum, vandaar dit topic.

[ Voor 11% gewijzigd door jlammertink op 06-01-2005 21:56 ]


  • alienfruit
  • Registratie: Maart 2003
  • Laatst online: 09-05 23:44

alienfruit

the alien you never expected

"Macromedia Flash MX 2004 Game Design demystified."
Ik vind dat wel een goed boek, alleen gaat dit boek net zoals friend of ed's "Flash MX 2004 Games Most Wanted" is er geen gedeelte over het maken multi-user spellen, dus als je dat verwacht... Dan kan je die alvast alwat bijstellen, verder vond ik het zelf ook jammer dat het geen ActionScript 2.0 code bevat. De rest is natuurlijk heerlijk, zoals over physics, animation etc. Je kan meteen een spel maken, er zitten erg leuke voorbeelden in, zoals een race spel etc. :D

[ Voor 17% gewijzigd door alienfruit op 06-01-2005 22:35 ]


  • BtM909
  • Registratie: Juni 2000
  • Niet online

BtM909

Watch out Guys...

jlammertink schreef op donderdag 06 januari 2005 @ 21:54:

[...]


Ja, ik wou me vanaf deze week wat meer verdiepen in flash en vond het al raar dat er zo weinig flash was op dit forum, vandaar dit topic.
:? er is genoeg te vinden hoor, maar meeste flash dingetjes (zoals problemen ;)) worden in afzonderlijke topics geplaatst :)

Ace of Base vs Charli XCX - All That She Boom Claps (RMT) | Clean Bandit vs Galantis - I'd Rather Be You (RMT)
You've moved up on my notch-list. You have 1 notch
I have a black belt in Kung Flu.


  • jlammertink
  • Registratie: Oktober 2004
  • Laatst online: 11-04-2021
BtM909 schreef op donderdag 06 januari 2005 @ 22:35:
[...]

:? er is genoeg te vinden hoor, maar meeste flash dingetjes (zoals problemen ;)) worden in afzonderlijke topics geplaatst :)
ja dat bedoel ik dus eigenlijk... niet echt iets groots zoals je bij 3d en 2d hebt zeg maar terwijl toch aardig wat mensen bezig zijn met flash

  • roytanck
  • Registratie: Oktober 1999
  • Laatst online: 03-02 12:56
Om mijn laatste twee flash movies in het kader van "vrij werk" te bekijken moet je op http://www.weefselkweekje.com ff op de laatste twee nummertjes klikken. Beiden zijn variaties op hetzelfde thema, het simuleren van echt 3d d.m.v. isometrisch. Beiden zijn ook loodzwaar voor je PC :)

  • MistaV
  • Registratie: Mei 2004
  • Laatst online: 03-08-2025
Nice WeefselKwakje! uhh kweekje! :p

Ik heb ook nog een vraagje over define / alias in flash. (Zorgen dat 2 waardes altijd precies hetzelfde zijn)

Dit heb ik uit de Flash help:

var myArray = ["tom", "josie"];
var newArray = myArray;
myArray[1] = "jack";
trace(newArray);

Hier komt dan ook mooi tom & jack uit, maar het lukt me niet om dit met gewone variabelen te doen. Iemand een idee?

  • JvdM
  • Registratie: April 2004
  • Laatst online: 01-04 22:31

JvdM

<---->

alienfruit schreef op donderdag 06 januari 2005 @ 22:33:
"Macromedia Flash MX 2004 Game Design demystified."
Ik vind dat wel een goed boek, alleen gaat dit boek net zoals friend of ed's "Flash MX 2004 Games Most Wanted" is er geen gedeelte over het maken multi-user spellen, dus als je dat verwacht... Dan kan je die alvast alwat bijstellen, verder vond ik het zelf ook jammer dat het geen ActionScript 2.0 code bevat. De rest is natuurlijk heerlijk, zoals over physics, animation etc. Je kan meteen een spel maken, er zitten erg leuke voorbeelden in, zoals een race spel etc. :D
Er zit wel AS 2.0 in. :)

  • Canard
  • Registratie: Oktober 1999
  • Laatst online: 10-05 16:48
MistaV schreef op vrijdag 07 januari 2005 @ 11:52:
Nice WeefselKwakje! uhh kweekje! :p

Ik heb ook nog een vraagje over define / alias in flash. (Zorgen dat 2 waardes altijd precies hetzelfde zijn)

Dit heb ik uit de Flash help:

var myArray = ["tom", "josie"];
var newArray = myArray;
myArray[1] = "jack";
trace(newArray);

Hier komt dan ook mooi tom & jack uit, maar het lukt me niet om dit met gewone variabelen te doen. Iemand een idee?
Dit heeft te maken met het 'by value' en 'by reference' principe, kijk maar eens in de Flash help

  • alienfruit
  • Registratie: Maart 2003
  • Laatst online: 09-05 23:44

alienfruit

the alien you never expected

Er zit wel AS 2.0 in. :)
Mag jij mij vertellen welke bladzijde :)

  • JvdM
  • Registratie: April 2004
  • Laatst online: 01-04 22:31

JvdM

<---->

Flash MX 2004 Game Design Demystified
bladzijde 2 (inleiding dus)
Acknowledgments --> Ben's Acknowledgments --> "This book, updated for Flash MX 2004 and Actionscript 2.0 ......... "

Ik neem aan dat ze hier niet over liegen :P. meer kan ik je er niet over vertellen omdat ik van vooraf aan begin ;)
Het kan ook zijn dat jij niet de MX 2004 versie hebt.

[ Voor 13% gewijzigd door JvdM op 07-01-2005 12:25 ]


  • MistaV
  • Registratie: Mei 2004
  • Laatst online: 03-08-2025
Canard schreef op vrijdag 07 januari 2005 @ 12:09:
[...]


Dit heeft te maken met het 'by value' en 'by reference' principe, kijk maar eens in de Flash help
Dat heb ik gedaan, en daar krijg ik dus alleen de optie om array-waarden altijd hetzelfde te laten zijn, maar niet hoe je dit doet met gewone variabelen...

Kan dit simpelweg niet in Flash (wat me onwaarschijnlijk lijkt) of zie ik iets over het hoofd?

Anyone?

  • Canard
  • Registratie: Oktober 1999
  • Laatst online: 10-05 16:48
MistaV schreef op vrijdag 07 januari 2005 @ 13:04:
[...]


Dat heb ik gedaan, en daar krijg ik dus alleen de optie om array-waarden altijd hetzelfde te laten zijn, maar niet hoe je dit doet met gewone variabelen...

Kan dit simpelweg niet in Flash (wat me onwaarschijnlijk lijkt) of zie ik iets over het hoofd?

Anyone?
Dit kan simpelweg inderdaad niet. Strings en Numbers zijn altijd by value en o.a. Arrays zijn by reference. Waarom is dat een probleem voor jou?

[ Voor 8% gewijzigd door Canard op 07-01-2005 13:17 ]


  • jlammertink
  • Registratie: Oktober 2004
  • Laatst online: 11-04-2021
ik ben echt een noob als het gaat om flash en wil zoals al eerder verteld dat als ik op bijvoorbeeld op het cijfer x druk een deuntje hoor. eerder is er al een script gepost maar deze werkt niet (deze laat een geluidje horen als je op spatie drukt en zelfs dat werkt niet bij mij, hij wil het geluid gewoon niet afspelen). Ik heb het geluid in m'n libary staan en het heet HiHat. Wie kan me even goed uitwerken hoe dit werkt? alvast bedankt

  • Liquid
  • Registratie: April 2000
  • Niet online
Sorry hoor, maar dit is volgens mij niet de bedoeling bij "grote topics". Dit lijkt nu wel een verkapte "script-request" topic.

Het zou veel leuker zijn als er net als in de 2d en 3d topics gewoon flash stuff wordt gepost. Vandaar uit kan men dan eventueel vragen stellen hoe zoiets gemaakt wordt.. het is dan aan de poster de keuze om de broncode vrij te geven of niet.

Maar voor jouw vraag (jammertink) zou je imo gewoon een nieuw topic kunnen openen. Maar om je toch wat pointers te geven.

Je hebt het vast over dat stukje code van Canard. Als iets uit de library gehaald wordt via een "attach", dan moet je zorgen dat er ook een Linkage gemaakt is voor de export van actionscript. Hier kan je dan een naam toekennen aan de library object. Volgens het scriptje moet het dan ook "mysound" heten.

Ik zou zeggen. Zoek op attachSound en wat Linkage in flash doet. De rest van de script werkt gewoon zonder dat jij weet wat het echt doet... Wil je dat wel weten, dan kan je op flashfocus.nl een klein maar wel leerzaam artikeltje lezen over Listeners.

  • MistaV
  • Registratie: Mei 2004
  • Laatst online: 03-08-2025
Canard schreef op vrijdag 07 januari 2005 @ 13:16:
[...]


Dit kan simpelweg inderdaad niet. Strings en Numbers zijn altijd by value en o.a. Arrays zijn by reference. Waarom is dat een probleem voor jou?
Omdat ik in de toekomst waarschijnlijk een aantal werken moet gaan aanpassen zodat een een stel standaardnamen worden gebruikt. Alles vervangen is veel meer werk dan even een paar references maken.

Verwijderd

jlammertink schreef op vrijdag 07 januari 2005 @ 13:30:
ik ben echt een noob als het gaat om flash
Waarom begin je dan een "Post je flash stuff " topic? NOFI hoor, maarre daar snap ik geen ene moer van. Ik vind het wel een leuk idee, maar ik voorzie nu al een topic vol met van dit soort vraagjes, dan raak je op een gegeven moment de draad echt kwijt.

Verwijderd

Zoals beloofd, leuke tutorials: http://www.freeflashtutorials.com

  • flashin
  • Registratie: Augustus 2002
  • Laatst online: 17-12-2023
http://www.flashin.nl/auto.swf

hittest werkt toch niet helemaal perfect, als je een beetje snelheid hebt ga je er vaak verder doorheen :p.. Als je dan ook nog zo draait dat je 1 achterwiel erin hebt kun je zelfs door de muur heen :o

edit: duh, code ;)
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
        this.rightFrontPos = getPos(this.rightFront);
        this.leftFrontPos = getPos(this.leftFront);
        this.rightBackPos = getPos(this.rightBack);
        this.leftBackPos = getPos(this.leftBack);
        
        // for x collisions
        if(_root.track.xSolid.hitTest(rightFrontPos.x, rightFrontPos.y, true) || _root.track.xSolid.hitTest(leftFrontPos.x, leftFrontPos.y, true)) {
            if(this.speed<0) {
                this.xChange = 0;
            }
            else {
                this.xChange =  -speed;
            }
        }
        else {
            this.xChange = 0;
        }
        // rear wheels
        if( _root.track.xSolid.hitTest(rightBackPos.x, rightBackPos.y, true) || _root.track.xSolid.hitTest(leftBackPos.x, leftBackPos.y, true)) {
            if(this.speed>0) {
                this.xChange = 0;
            }
            else {
                this.xChange =  -speed;
            }
        }

        // for y collisions
        if(_root.track.ySolid.hitTest(rightFrontPos.x, rightFrontPos.y, true) || _root.track.ySolid.hitTest(leftFrontPos.x, leftFrontPos.y, true) || _root.track.xSolid.hitTest(rightBackPos.x, rightBackPos.y, true) || _root.track.ySolid.hitTest(leftBackPos.x, leftBackPos.y, true)) {
            if(this.speed<0) {
                this.yChange = 0;
            }
            else {
                this.yChange =  -speed;
            }           
        }
        else {
            this.yChange = 0;
        }
        if(_root.track.ySolid.hitTest(rightBackPos.x, rightBackPos.y, true) || _root.track.ySolid.hitTest(leftBackPos.x, leftBackPos.y, true)) {
            if(this.speed>0) {
                this.yChange = 0;
            }
            else {
                this.yChange =  -speed;
            }           
        }

// en de verplaatsing
_root.track._y += ((Math.cos(this._rotation*(Math.PI/180))/this.traction)*(this.speed+yChange)*-1);
_root.track._x += ((Math.sin(this._rotation*(Math.PI/180))/this.traction)*(this.speed+xChange));
even voor de duidelijkheid zover dat kan lukken, xSolid is de mc met rode balken zoals in auto.swf te zien is, ySolid is een mc met de groene.

Wie kan mij helpen met een beter idee voor collision detection? Dit werkt voor geen ruk namelijk.

Overigens niet alle code van dat autootje is van mij, ik heb wel vrijwel alles overnieuw geschreven

[ Voor 94% gewijzigd door flashin op 07-01-2005 19:29 ]


  • XangadiX
  • Registratie: Oktober 2000
  • Laatst online: 25-03 10:55

XangadiX

trepanatie is zóó kinderachtig

ik weet ook nog niet wat ik er mee ga doen 8)7
http://www.xangadix.net/download/menutje3.swf

Stoer; Marduq


  • oh,when?
  • Registratie: April 2000
  • Niet online

oh,when?

...

Laast recent werk:
First8 ( winnaar van Gouden Epica award 2004 :) )
Zwijsen Veilig Leren Lezen 2e Maanversie ( Educatieve CD-ROM voor groep 2 en 3, in gebruik op 80% van NL en BE basisscholen )
Coca Cola Creative Studio ( Maak je eigen videoclip van DJ Tiesto en win een Meet & Greet )
Maybelline Kortingsbanner

Verder oa recent flash werk gedaan voor T-Mobile, Dayzers, Citroen en Coca Cola. Heel recent werk ( vorige week ):

FC Utrecht ( simpel hooghoud spelletje, doorlooptijd 6 uur :D )
Mutoid ( mijn eigen bedrijf :) )

[ Voor 8% gewijzigd door oh,when? op 10-01-2005 01:24 ]

"You're only as good, as what you did last week."


Verwijderd

Voor wat resource en links naar handige/mooie sites kun je nog altijd terecht op mijn site:
- Seraph
maar dit zal denk ik niet heel lang meer zijn om dat ik binnenkort met een nieuwe site kom die meer is gericht op mijn portfolio.

Een recent deel van deze portfolio:
- Erik Otten v7 (Erik het ontwerp, ikke Flash)
- Douglas Design navigatie (Erik het ontwerp, ikke Flash)

Verder komen er nog een heel aantal sites aan:
- Dr - RedTape (Site voor een punk band)
- For You Bruidsmode (Erik het ontwerp, ikke Flash)

En aangezien Erik en ik nogal wat projecten samen werken komen we ook nog met een speciaal project op:
- Seraph + Erik Otten (Erik het ontwerp, ikke Flash, rest nog even geheimpje ;))

  • XangadiX
  • Registratie: Oktober 2000
  • Laatst online: 25-03 10:55

XangadiX

trepanatie is zóó kinderachtig

ook maar even patsen dan :+ ;
http://www.g-sus.com/

ontwerp (en ja ook het interactie ontwerp :/ van c3 flash van mij)

[ Voor 3% gewijzigd door XangadiX op 09-01-2005 22:31 ]

Stoer; Marduq


  • Larixk
  • Registratie: Juli 2001
  • Laatst online: 22-06-2024

Larixk

met xk, ja

damn grote namen worden hier gepost, nooit bij stil gestaan dat er zulke elite flashdesigners vaste klant zijn.

larixk


  • alienfruit
  • Registratie: Maart 2003
  • Laatst online: 09-05 23:44

alienfruit

the alien you never expected

Ik zie net dat een paar collega's een "Internet Tiny Award" binnen hebben gesleept,
Voor de website:
http://www.nintendo-europe.com/microsite/zeldaminishcap/

[ Voor 7% gewijzigd door alienfruit op 09-01-2005 23:45 ]


  • jlammertink
  • Registratie: Oktober 2004
  • Laatst online: 11-04-2021
alienfruit schreef op zondag 09 januari 2005 @ 23:43:
Ik zie net dat een paar collega's een "Internet Tiny Award" binnen hebben gesleept,
Voor de website:
http://www.nintendo-europe.com/microsite/zeldaminishcap/
die is ook wel heel erg gruwelijk _/-\o_ _/-\o_

  • Beekforel
  • Registratie: November 2001
  • Laatst online: 13:06

Beekforel

Is eigenlijk geen vis

Oe, leuk topic. :)
Ik heb zelf nog niet echt veel in Flash gedaan maar vind het wel erg mooi om er mee te werken.
Qua topicstart zou www.flashfocus.nl toegevoegd kunnen worden. Voor de leuk is http://www.tokyoplastic.com/ een erg mooie site.

Verwijderd

't is al weer te lang geleden dat ik hier ben geweest. Ben te druk aan het flashen tegenwoordig.
Ik zal voor de vorm maar eens een klein stukkie code posten : een screeneventcatcher...

Flash ActionScript:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
    util.ScreenEventCatcher
    FMX 2004 Class
    
    This class, to be initiated within a screen, catches all UIObject events, 
    and does a callback of this event on it's target Screen.
    This should greatly reduce number of excess code, normally added to a screen,
    to catch same events.
    
    Version 0.1 - 2005 - Ralph Hauwert
    
    ToDo : Create an extended Screen/Form/Slide Class, which has the callbacks built in.
    Maybe ToDo : Switches, so needed and unneeded listeners can be switched on/off/
    Maybe ToDo : Check for the existence of the callback in the target, which could enhance performance?
*/

class util.ScreenEventCatcher{
    //private var target:mx.screens.Screen;
    private var target:Object; // To be replaced by extended Screen class, which has these callbacks 
    
    //Constructor
    function ScreenEventCatcher(o:mx.screens.Screen){
        if(o != null && o !=undefined){
            this.target = o;
            o.addEventListener("hide", this);
            o.addEventListener("reveal", this);
            o.addEventListener("allTransitionsInDone", this);
            o.addEventListener("allTransitionsOutDone", this);
        }else{
            trace('Screen Event Catcher:::Target not set');
        }
    }
    
    public function allTransitionsInDone(eventObj):Void{
        this.target.onAllTransitionsInDone(eventObj);
    }
    
    public function allTransitionsOutDone(eventObj):Void{
        this.target.onAllTransitionsOutDone(eventObj);
    }
    
    public function reveal(eventObj):Void{
        this.target.onReveal(eventObj);
    }
    
    public function hide(eventObj):Void{
        this.target.onHide(eventObj);
    }       
}


Doe nog veel meer, maar 's ff een spelletje posten ;)
(voor de liefhebbers : er zit een te vette moving object tilemap collision engine in; getest met 2000 objecten, soepel draaien).

http://www.planet.nl/shoptillyoudrop/

code van mij, vorm van Draft-Worldwide.

[ Voor 10% gewijzigd door Verwijderd op 10-01-2005 11:45 ]


  • oh,when?
  • Registratie: April 2000
  • Niet online

oh,when?

...

Yo Ralph, waarom de Callback proxy? en wat als ik meerdere objecten wil aanroepen per scherm? En als je extend van mx.screens.Screen hoef je alleen de linkage setting in je PI goed te zetten, scheelt je weer een TODO :)

"You're only as good, as what you did last week."


Verwijderd

oh,when? schreef op maandag 10 januari 2005 @ 14:05:
Yo Ralph, waarom de Callback proxy? en wat als ik meerdere objecten wil aanroepen per scherm? En als je extend van mx.screens.Screen hoef je alleen de linkage setting in je PI goed te zetten, scheelt je weer een TODO :)
I get, I get. ;)
Reden is dat je OP een scherm code als on(hide) en on(reveal) kan zetten. Aangezien dit niet echt good practice is, wilde ik deze events terug zien, en dan wel binnen de class code. Ipv het op elke screen class te gooien, leek het meer handig om er een listener aan toe tevoegen in de vorm van een proxy class. Meerdere objecten is een goede, ga ik regelen.

  • BtM909
  • Registratie: Juni 2000
  • Niet online

BtM909

Watch out Guys...

Ok, hier even een praktische Flash vraag :)

Ik ben bezig met een klein projectje waar items in voorkomen. Items zijn:
• audio
• foto's
• losse (op zichzelf functionerende) MC's

Nou is het bij elkaar niet zo heel groot. Maar kan ik het allemaal embedden en de gehele movie preloaden, of gebruiken jullie een preloader die de losse files apart preload?

2e kan praktischer zijn, maar het is niet het doel om die items los te kunnen vervangen.

Als ik trouwens een beetje rondkijk hoe het op andere sites / tuts wordt gedaan, is het voornamelijk de eerste optie. Er wordt eigenlijk alleen maar apart geladen mits de MC's bij elkaar te groot worden, zodat de gebruiker alvast bezig kan zijn met de site en de MC's pas geladen worden indien nodig.

Zit niet echt vast, maar vraag me af hoe men hiermee omgaat. Is grootte en praktisch gebruik van de onderdelen de enige afwegingen tussen beide opties?

Ace of Base vs Charli XCX - All That She Boom Claps (RMT) | Clean Bandit vs Galantis - I'd Rather Be You (RMT)
You've moved up on my notch-list. You have 1 notch
I have a black belt in Kung Flu.


  • XangadiX
  • Registratie: Oktober 2000
  • Laatst online: 25-03 10:55

XangadiX

trepanatie is zóó kinderachtig

BtM ik ben bezig met een artiekel daarover, maar dat heb ik even moeten laten rusten omdat ik last van RSi heb gehad. Maar ik wil het hier wel even voor je posten :)

kan ik er meteen wat feedback op krijgen, ik geloof dat van de groep hier alleen Waxle, mr10 en Owen het hebben gelezen.

deel 1:

Zen and the art of preloading

On preloading

Preloading may sound like a relatively new concept in the world, but actually it is based on a much older principle. Preloading at it’s most basic level is creating anticipation for an event. A ‘preloader’ can also serve as an indicator that a certain event is going to happen. Think of the count-down clocks we saw in the entire western world at the ending of the last millennium. They were in a sense ‘preloading’ or ‘creating anticipation for’ the year two thousand.

In a more conventional way the preloader has become part of modern day communication. The first preloaders were bare necessities on old computers. Loading a tape of information took quite some time and an indicator or a ‘progress bar’ was essential. Should you go out and make some coffee or just read a bit while the game on your MSX was loading?

Preloading really took off in the Flash-age. Since Flash 4 there was this beautiful command called getFramesLoaded. All hipsters could go totally berserk in their designs and graphical experiments as they could now let their (online) audiences wait for the content to load. Of course they could have done that earlier, but if a common internet user sees an empty page for more than point-five seconds he automatically thinks something has gone wrong and he clicks away. Not with a preloader, now anticipation can be created by a simple ‘loading’. This automatically indicates that the computer is not broken but is ‘loading’ some graphically intense page.


Preloading as a cultural icon

Since then the preloader has become something of a cultural icon. Much like the screensaver. With the screensaver it’s much more artistic though since there is really no more use for a screensaver these days. The screensaver was initially intended to keep screens from ‘burning in’ when a specific picture or application was on the screen for too long. Screens and monitors don’t burn in anymore but the screensaver persisted; now more as an artistic or comic gadget then a necessary tool.

The preloader has adopted some of these characteristics. On major television channels there can be seen ‘preloaders’ anticipating a commercial break or the next broadcast. All embedded in some flashy design. Preloading on a television is plain stupid.

I can’t press this enough, so I’m saying it again:
Preloading on a television is plain stupid!
Preloading on a television is one of the of the most idiotic examples of horseless carriage syndrome (McLuhan 1968).
On a television there is nothing to preload! Unless the editor is at that moment working on the next edit. Which he isn’t. The only sensible preloader on television would be one preloading a rerun in slow-motion of a brilliant move in a sports game.


Preloading stupidity

The only real preloaders nowadays are made for slower web connections on graphically intense sites. This stands to reason, but luckily there are enough people who can mess with this simple principle.
I’ve seen preloaders of over 200 or 300 kilobytes, which would take a slow web connection about 10 to 20 seconds to load. So I have to wait for my preloader to show.
The whole point of preloading is then completely wasted, users will switch the site off, expecting a 404. The artistic elements that have been inherited by the preloader mess up the essential thing that makes a preloader work. A preloader should be as small as possible, and does not need to reflect the artwork in the site ahead.

It should not come as a surprise that some designers have gone so far as to ‘preloading their preloaders’ which means you see a progress bar, telling you it’s ‘loading’ and then when it finishes another, more sophisticated, progress bar appears telling you it’s now ‘really loading’. What were you thinking it was doing before, Einstein?
Couldn’t you have loaded the whole thing in the first loader? I’m waiting for content nobody has asked for, I’m basically anticipating more anticipation, and personally I think that is pretty lame.

Well then, having explained the basics of preloading we can now proceed to the interesting stuff: preloading in flash and how to get it right.
Readers without a basic understanding of flash can now stop reading and go and play crack attack or some other highly addictive game.


Deel 2:
(en dit is meer technisch, en ook nog niet helemaal af)

Preloading in flash and how to get it right

We have come a long way since the days of ifFrameisLoaded, we now have in flash a complete armory at our disposal to preload everything neatly and nice. The most important of these are the movieClip.getBytesLoaded() and movieClip.getBytesTotal(), but even those are obsolete when compared with .getProgress, _framesloaded, .onLoadInit and all kinds of nifty commands telling you exactly what you want to know about the bytes and bits streaming into the users computer.

We’ll get to those later, but for now let’s stick with the basics;
preloading is essentially measuring the time it will take to load, and communicating that to the user. Then he or she knows if he should go out and get some coffee or just read a bit in a comic book.

Okay, the code is very simple; first make a movieClip of a progress bar and make it hundred frames (so the bar should be empty on frame 1 and full on frame hundred). Add a stop(); on the first frame and place it on the stage and call it ‘loader’.
The actionscript should be something like this:

code:
1
2
3
Loaded = theThingYouWantToLoad.getBytesLoaded();
Total = theThingYouWantToLoad.getBytesTotal();
Loader.gotoAndStop( Math.round (loaded/total * 100) );


The first rule of preloading is: keep it simple.

Nobody is expecting you to take ‘the next step’ in preloading, a progress bar with ‘loading’ will do. Everybody knows what it is you want to communicate and they can see how fast things are progressing. Sure, you have the loader information up to the last byte and you could do all kind of nifty shit with it. You could feed the bytesLoaded into a sinus function and apply it to an object on stage, make it spin or wiggle faster and faster as the bytes come streaming in. Heck you could take a Bob Ross painting and see it develop as more and more information drips into your site.
But why would you?

The preloader is not the work of art you want people to see; it’s just a necessary bit of information so your users don’t click away. It’s telling people they have to wait, which is essentially a bad thing. Don’t shout.
I’m not saying all the preloaders should be the same, a bit of variation is cool, but don’t overdo it. Before you know it people are preloading the preloader because you had to cram so much information in it. Therefore:


The second rule of preloading is: keep it small.

Preloaders are build to appear before everything else. They should appear within a second of loading a page. Although we in the West all have fat ADSL or cable connections ranging from 128k up to 1024k and more, there are still large parts of the world where they have 56k6 modems or lagging satellite connection. If you want your page to be truly international you should limit the size of the preloader to 4k. This is not that hard, 4k is a lot of room for just some vector locations and a bit of code.
It’s rather small unless you want to use gradients, neat pictures or other graphical intense stuff so don’t do that. All the graphical stuff is exactly what you are preloading, don’t mess it up. (note to the mac users: don’t cram 128 bits imagery in there!)

There are those of you that are now in the league for the ‘the smallest preloader in the world’. I’m sure you are now thinking of using only one element and duplicating that in the preloader, or building everything out of dots. Well, if you plan on making the smallest preloader: don’t. I’ve already beaten you to the punch:

The smallest preload in the world ( with a progress bar )

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(coded for Flash 6 and ActionScript 1)
    (It could be even smaller if you remove the textformat and the rounding ;) )

function p() {
    createTextField('o', 0, 100, 100, null, null);
    o.autoSize = 'right';
o.setNewTextFormat(new TextFormat('_sans', null, null, null, null, null, null, null, 'center'));
    
onEnterFrame = function() {
if (getBytesLoaded() >= getBytesTotal() & getBytesLoaded() > 4) {
            delete onEnterFrame;
            o.removeTextField();
        } else {
o.text = '__Loading__\n[' + '||||||||||||||||||||||||||||'.substr(0, (33 * (getBytesLoaded()/getBytesTotal()))) + ']\n' + Math.round(getBytesLoaded()/1000) + 'kb of ' + Math.round(getBytesTotal()/1000) + 'kb';
        }
    }
}
p();
stop();


Now if all is well you got all the tools to make an awesome preloader, which basically means you can make a very efficient one.
Still, if your site is amazingly large because you want to present pictures of mars in their full size or you have a fetish for body hair on women’s uvula and want to show pictures of that in an amazingly large frame you’re still not there.

These are not the days of the MSX where people really went to make coffee as loading times could exceed an hour. Even with the best preloaders in the world people will click away if they have to wait for more then a minute, so:


The third rule of preloading is: keep it swift

We want our preload times to be under one minute; on a 56k6 modem (5k/s) I can load 300k of data. That may not be much. Basically you want your site to be under that number, but that is not always an option. Here are a few solutions you could take into consideration.

If it must take forever, try telling people how long forever takes. Waiting is never nice, but if people have to wait for something they like to know for how long. A simple progress bar might not be sufficient because with long loading times the progress bar would animate really slow. It might be interesting to point out how many (estimated) seconds it will take to complete the loading.
To achieve this you need to know how many bytes are loaded every second, how many bytes are loaded at this moment, and how many bytes the total load is. The latter two can be asked with the getBytesLoaded() and the getBytesTotal(), the first one you need to calculate. For this you make a little cycle of one seconds and check how many bytes are actually loaded. The (estimated) load time is then:
( bytesTotal – bytesLoaded ) / bytesPerSecond.

Or in actionscript:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
Loaded = theThingYouWantToLoad.getBytesLoaded();
Total = theThingYouWantToLoad.getBytesTotal();
Loader.gotoAndStop( Math.round ( loaded/total * 100 ) );

setInterVal(bytesPerSecond, 1000)

function bytesPerSecond() {
    currentLoad = Loaded
perSecond = currentLoad &#8211; lasLoad
lastLoad = currentLoad
    }

    someTextField.text = Math.round(perSecond) add &#8220;s&#8221;


Still, this is only a temporary solution, if people are told that they have to wait for several minutes they still think something like ‘screw you’ and click away. So a very interesting option is to give people something to do; preferably something addictive.
A game like ‘pong’ or even a small version of ‘pac-man’ can easily be fitted into 4k of preloading space. Other options are ‘simon says’ or ‘lingo’. If you add a highscore script you even might get some traffic on your preloaded and people will be mailing you with questions like ‘can’t you put that preloader separate so I can continue playing?’. True story.

The best solution though is to preload content in chunks. Only preload a certain picture when it is asked, and not beforehand. Preload it in the background if you wish, but it might be an option to only load the framework of a site and then use preloaders to load the different content areas leaving the preload time well under the one minute. If you would count all preloading times together you might come on several minutes, but the user experiences it differently because he gets handed a bit of information before some preloader starts again. Basically this is the hard part:


Flash and preloading dynamic content

Now you might have got some php backend running somewhere. So flash is getting all kinds of variables. In this case it is a good time to build a host file in which all content is loaded. Now since content is streaming or comes in blocks (one picture at a time…, song after song…) we only need to preload static elements.
If you work with ‘placers’ like I usually do a function can be described called:

code:
1
function placeObject(place, object) { statement }


We could also call this function:

code:
1
function objectPlacer(object, place) { statement }


But that is all semantics.

What we want to do here is describe a way to place objects on the stage. An object can be a mp3 file placed into an mp3 player or a picture placed at a certain location on the stage.
Within this function a preloader is embedded (or called), taking the form and the place of object. If you have several standard size places to put stuff in (for instance: a window for slides and a window for thumbnails) you can make 2 standard loaders for each place.

So let’s say we are building a slideshow and we have 2 places where we send pictures to; a list with thumbnails, and a larger windows for the full size pictures. In this case we need to preloaders; one for the thumbnails and one for the larger picture. There are a few things to consider then.

Firstly the shape and size of the preloaders. Since there will be many thumbnails preloading you want to keep their preloaders simple and light. Another thing to consider here is the load-order. Mr10 was kind enough to point out that when you try to load over 16 or more objects into flash the connection will be lagging. So you might want to consider scaling the number of thumbs down, or create a load order, loading in one row of pictures at the time.
Still you will have a lot of preloaders staring at the user at the same time. It might be nice to make a loader-animation that is somewhat tilable, so all the loaders together look like one animation loading in the thumbnails. You can also join every row or column of thumbnails together in one loading-array and make a preloader per set of thumbs.

The preloader for the bigger window displaying the larger pictures will be in the view of the user longer, since there is more to load. You might want to consider making this preloader a bit more sophisticated since the user will be looking at it longer. (see also the third rule of preloading)

When all is well and done you should be able to make this simple example with these basic principles of preloading. But what if you got a variety of dynamic content instead of same-sized pictures. What if there are complete flash files to be loaded along side music, video and other broadband content. You need a strategy. So here goes:


The rules of engagement

When you are setting up a framework or portal in flash you need to index all the kinds of content that can be presented within that framework. Surely you need to build players for that content, but what you also need is a way of creating anticipation for the content, and give feedback on the loading-progress of content. Say we want to build a portfolio that supports streaming video, streaming mp3, gallery’s and a large amount of text. That’s basically covering all ‘broadband content’.

Now I really detest the word ‘broadband content’ since it reminds me of ‘multimedia computer’ which was singing around at the end of the nineties. It’s stupid to speak of a multimedia computer when you know that in a few years every computer will have on-board sound and the ability to playback video. In that aspect it’s also pretty stupid to speak of ‘broadband content’ when you know that in a few years all content will be presented in a ‘broadband manner’, it’s simply a question of time. What we really need to know it how to make sure that people don’t need to wait for that content to come streaming in, and surely they don’t need to be kept in the dark about how many seconds it will take to get some of the data played.
What we need is a way to determine what content should be loaded in what manner too


The plan of battle

Some content can be preloaded, yes. But other content should not always be preloaded, but it should be loaded so far as to be able to play. This content I refer to as ‘streaming media’. ‘Streaming media’ is another word that makes my skin crawl, because in essence all media is streaming, but I won’t go off-topic about this again.
What I need to do is take a look at all the content I want to port through my portal and think of a way to load it in neatly.

There are the pictures in the galleries. There can also be pictures in the container or hostfile. These are for instance background pictures, menu items. Smileys etc. Pictures can only be loaded in flash as a whole.
Sadly enough pictures can not be streamed although there was an amazing browser once that actually streamed pictures in. First it would give you a really pixilated version of a picture which then would gather resolution as it came loading in. You could simulate this and it would make an amazing preloader, but sadly enough, flash (and the jpg file codec) are not designed for this.

Next there is the sound. Sound in flash comes in two different flavors, streaming and non-streaming. If you can you should make all sound streaming. There is a simple reason for this, if you stream it you don’t need to preload it all at once. The drawback here is that you have a lag time connecting to the mp3 file and that you can’t make it loop without a nasty hick-up at the end. So for all menu-clicks and beep-sounds you need to make a little place in the library where they feel comfy. For all other sounds (including irritating background-loops) make them streaming. You are not only getting rid of that nasty loop, but you are also making your application faster.

Then there is the video. It doesn’t really matter if you use .swf or .sfv files for this (although I find using swf a bit more convenient) but whatever you do: stream your video-files. I can’t even begin to explain how far up your arse your head is if you are not streaming the video. Even a small video file is usually well over 200k and stuffing that into your library is eating space (and bandwith) fast. Secondly it’s not necessary. Like audio, video is a linear file and we have a special weapon for these kind of files.

Finally I have the framework of my site, which is a host-swf. This consist of essential parts of the site or this can consists of only an empty swf containing only your actionscript code. I’ll be talking about the how and why of this decision later on, but keep in mind that this has to be loaded as well. (a couple of hundred lines of code easily surpass the 5k threshold I set in the ‘keep it swift’ section).
Usually this file also contains the library, and even if you use shared libraries, this can get really big and messy. So keep in mind that:


The best defense is striking first

Flash MX 2004 has some weird options concerning preloading the library content. I ran across this when I was doing a site for a clothing company. The main timeline had no objects, I called everything from a library fill using the attachFrom Library(). When preloading this site there was a library to download in the first frame. This meant it wouldn’t show anything until the library was loaded. This is a problem because my ‘loading’ animation would not show until everything was loaded already. You have to keep in mind that unless you do something about it Flash loads everything in the first frame; even stuff that isn’t actually there. This goes for components and component objects as well. Luckily you can change this using your ‘publish settings’.

To correctly load a flash (that is, first load the preloader, then start loading the rest of the site do the following; go to your publish settings and find the ‘settings’ under your Flash-tab. Then set ‘export frame for classes’ on 2 and put the preloader on frame 1. This solves the problem for components.
Now set your entire library on frame 3, just drag and drop it on the stage; the stuff will now not load in advance, but after frame one. You can then put your site on frame 4 to which the preloader will jump after everything is loaded. This way you can manage your preloading-load using the timeline.

Now the trick is to load only what you need in advance, and the rest during runtime.

Er komt nog iets over

Weakening the enemy (background loading, predicting user behavior etc)
Wapons of war: Buffering (over streaming events)
Fight in Style (over het gebruik van preloaders als artestiek element)

Het is misschien nog wat lang als ik het zo overlees :/ misschien dat ik het wel in driieen of vieren ga hakken B)

Stoer; Marduq


  • BtM909
  • Registratie: Juni 2000
  • Niet online

BtM909

Watch out Guys...

XangadiX schreef op maandag 10 januari 2005 @ 21:39:
BtM ik ben bezig met een artiekel daarover, maar dat heb ik even moeten laten rusten omdat ik last van RSi heb gehad. Maar ik wil het hier wel even voor je posten :)
Holy B)

Ga het straks meteen lezen... Op voorhand al _o_

Ace of Base vs Charli XCX - All That She Boom Claps (RMT) | Clean Bandit vs Galantis - I'd Rather Be You (RMT)
You've moved up on my notch-list. You have 1 notch
I have a black belt in Kung Flu.


Verwijderd

Post je flash (problemen) stuff maar weer :+

Anyway ik ben (tussendoor) bezig met een game engine, en zit nu vooral nog in de test/idee fase.

Met de java versie, ben ik nu net bezig bommen/explosies voor straks aan het testen;
http://www.xs4all.nl/~elout/ggame/ggame015.html
(ja dit echt een testje tussendoor, verwacht nu dus geen speelbare game)


Anyway,
vandaag kijken of ik wat van die basics weer kon porten naar flash, en kijken hoe snel ik kon komen kwa fps.

http://www.xs4all.nl/~elout/ggame/ggame008b.html

Nu komt het, Ik heb de laatste flashplayer 7 geinstalleerd
(op een p3 - 800mhz)

Als ik beweeg en dan weer stil sta;

zit ik rond 18 fps bij opera 7.1 / firefox 1.0 / mozilla 1.7.1

maar zit rond de 120 fps bij ie 6.0

Ik dacht het zal mischien aan IE/MS liggen;

Maar ik teste het toevallig ook op die 'hele ouwe' netscape 4.7
En die zit ook rond de 120 fps 8)7

  • BtM909
  • Registratie: Juni 2000
  • Niet online

BtM909

Watch out Guys...

Verwijderd schreef op dinsdag 18 januari 2005 @ 16:21:
maar zit rond de 120 fps bij ie 6.0

Ik dacht het zal mischien aan IE/MS liggen;

Maar ik teste het toevallig ook op die 'hele ouwe' netscape 4.7
En die zit ook rond de 120 fps 8)7
Had B-Top geen voorbeeld met 1000 FPS 7(8)7

edit:

Ja dus: http://home.wxs.nl/~leeu6431/example.html :P

[ Voor 11% gewijzigd door BtM909 op 18-01-2005 22:55 ]

Ace of Base vs Charli XCX - All That She Boom Claps (RMT) | Clean Bandit vs Galantis - I'd Rather Be You (RMT)
You've moved up on my notch-list. You have 1 notch
I have a black belt in Kung Flu.


  • oh,when?
  • Registratie: April 2000
  • Niet online

oh,when?

...

Gisteren is mijn allerlaatste officiele Clockwork project live gegaan, www.udc.nl ( organisator van oa Dance Valley ). Heb o.a. Flash gedeelte rechtsbovenaan ( al die filmpjes, nieuws etc ) gedaan, Flash Video en BackOffice integratie gedaan , alsmede veel werk in het voortraject gedaan. Was helaas in het eindtraject niet beschikbaar, en collega's hebben het afgemaakt.

:)

"You're only as good, as what you did last week."


  • BtM909
  • Registratie: Juni 2000
  • Niet online

BtM909

Watch out Guys...

oh,when? schreef op donderdag 24 februari 2005 @ 20:21:
Gisteren is mijn allerlaatste officiele Clockwork project live gegaan, www.udc.nl ( organisator van oa Dance Valley ). Heb o.a. Flash gedeelte rechtsbovenaan ( al die filmpjes, nieuws etc ) gedaan, Flash Video en BackOffice integratie gedaan , alsmede veel werk in het voortraject gedaan. Was helaas in het eindtraject niet beschikbaar, en collega's hebben het afgemaakt.

:)
1 woord: holy f*ck.... ;)

Ziet er erg stoer uit. Even 1 opmerking c.q. vraag: zie het voornamelijk bij de site van Carl Cox. Daar hebben jullie de hit-field (dunno hoe het ei'k heet :P) van de tekst zelf gebruikt (bijv. bij CLOSE). Je moet dus heel precies klikken. Is dat express gedaan? :P



ben benieuwd of jlammertink nog weleens langskomt, z'n openingspost plaatjes doen het al niet meer...

[ Voor 17% gewijzigd door BtM909 op 24-02-2005 20:28 ]

Ace of Base vs Charli XCX - All That She Boom Claps (RMT) | Clean Bandit vs Galantis - I'd Rather Be You (RMT)
You've moved up on my notch-list. You have 1 notch
I have a black belt in Kung Flu.


Verwijderd

kben bezig aan een site voor een maat van mij:

Is nog lang niet af en is helemaal nog niet geoptimaliseerd. backgroundImages zijn ook nog maar tijdelijk (alleszins de rode en de oranje). Alles wordt aangedreven via xml en html voor de teksten.
Niet letten op de dummydata die overal staat :)

http://www.cyb-ymer.be/ben

  • Larixk
  • Registratie: Juli 2001
  • Laatst online: 22-06-2024

Larixk

met xk, ja

Gaat dit topic nu al dood?
Ik vond het wel een goed initiatief

bij deze nog een creatie van mij van gisteravond, niet veel spectaculairs:
http://www.larixk.nl/upload/swfl.php?ref=28

[ Voor 9% gewijzigd door Larixk op 03-03-2005 12:03 . Reden: link verbeterd ]

larixk


Verwijderd

http://www.foryoubruidsmode.nl online! Design door Erik en Flash door moi.
Pagina: 1