- PHP Ming support -

Bemærk at PHP Ming ikke længere understøttes, heller ikke til test.

Ming er et open-source modul som giver mulighed for at lave SWF (Flash). Ming understøtter næsten alle Flash 4s muligheder, inklusive shapes, gradients, bitmaps (pngs and jpegs), morphs ("shape tweens"), text, buttons, actions, sprites ("movie clips"), streaming mp3, og farve transformering. Det eneste der mangler er lyd muligheder.

Simpelt eksempel

En knap med teksten 'Azero.dk' skrevet med Times New Roman og som linker til http://azero.dk.

Koden

<?php
  Ming_setScale(1.0);
  function makeRect($r, $g, $b){
    $s = new SWFShape();
    $s->setRightFill($s->addFill($r, $g, $b));
    $s->movePenTo(-100,-20);
    $s->drawLineTo(100,-20);
    $s->drawLineTo(100,20);
    $s->drawLineTo(-100,20);
    $s->drawLineTo(-100,-20);
    return $s;
  }
// Set Font
  $font = new SWFFont("./times_new_roman.fdb");
  $text1 = new SWFText();
  $text1->setFont($font);
  $text1->moveTo(155, 410);
  $text1->setColor(0x00, 0x00, 0x00);
  $text1->setHeight(28);
  $text1->addString("Azero.dk");
  $b1 = new SWFButton();
  $b1->setUp(makeRect(0xff, 0, 0));
  $b1->setOver(makeRect(0xcc, 0, 0));
  $b1->setDown(makeRect(0, 0, 0xaa));
  $b1->setHit(makeRect(0, 0, 0));
  $b1->addAction(new SWFAction("getURL('http://azero.dk/','website');"),SWFBUTTON_MOUSEUP);

  $m = new SWFMovie();
  $m->setDimension(1000,1000);
  $m->setBackground(0xcc, 0xcc, 0xcc);

  $i = $m->add($b1);
  $m->add($text1);
  $i->setName("Azero.dk");
  $i->moveTo(200,400);

header("Content-type: application/x-shockwave-flash");
$m->output();
?>
Link Beskrivelse
Ming PHPs egen vejledning til PHP Ming funktioner til Flash.
Fonte Link til fdb fonte.

Referencer

crossfit

"Team CrossFit Copenhagen takker for støtten fra Azero i vores kamp for at nå til CrossFit Games (VM) i Californien i Juli."

Nikolaj Rønnow

2015-01-19T11:02:53+00:00

Nikolaj Rønnow

crossfit
"Team CrossFit Copenhagen takker for støtten fra Azero i vores kamp for at nå til CrossFit Games (VM) i Californien i Juli."
eyeforimage

Azero has been Eye for Image's ISP from the very beginning. It's reassuring to know that they not only have a great array of products, but that we can always get relevant and timely information from their professional support team, by just picking up the phone and talking to someone.

Matt Coyle, Technical Copywriter / Eye for Image ApS

2015-01-20T03:47:24+00:00

Matt Coyle, Technical Copywriter / Eye for Image ApS

eyeforimage
Azero has been Eye for Image's ISP from the very beginning. It's reassuring to know that they not only have a great array of products, but that we can always get relevant and timely information from their professional support team, by just picking up the phone and talking to someone.

Kontakt Azero

Firmainformationer

AzeroCloud ApS
Nørregade 33
8464 Galten
CVR: 38 70 69 93
VAT: DK38706993

Telefon

Telefon: 38 19 50 17
 

Normal telefontid

Man-Fre: 10:00-12:00