Re: ming-fun Digest, Vol 6, Issue 5

"marco sottana" <[email protected]> Fri, 7 Nov 2003 10:17:10 +0100
Newsgroups gmane.comp.web.ming.general
Message-ID <002c01c3a510$24430e60$141e460a@co1>
i need to do a horrizontal menu with submenu.. anybody can send me some
example?

----- Original Message ----- 
From: <[email protected]>
To: <[email protected]>
Sent: Thursday, November 06, 2003 9:00 PM
Subject: ming-fun Digest, Vol 6, Issue 5


Send ming-fun mailing list submissions to
[email protected]

To subscribe or unsubscribe via the World Wide Web, visit
http://www.opaque.net/mailman/listinfo/ming-fun
or, via email, send a message with subject or body 'help' to
[email protected]

You can reach the person managing the list at
[email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of ming-fun digest..."


Today's Topics:

   1. sendAndLoad (uniontek)
   2. Re: sendAndLoad  (Wolfgang Hamann)
   3. Fwd: Re: [ming-fun] help please! - Rotation (Anews)
   4. Flash UI Components ([email protected])
   5. Re: sendAndLoad (uniontek)
   6. Re: Flash UI Components  (Wolfgang Hamann)
   7. mingdocs (Wolfgang Hamann)


----------------------------------------------------------------------

Message: 1
Date: Thu, 06 Nov 2003 05:43:06 +0100
From: uniontek <[email protected]>
Subject: [ming-fun] sendAndLoad
To: Ming MailingList <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain

Peace to all mingers!!

i'm currently testing ming0.3a from CVS.

Actionscript load() works fine for me but i spend hours trying to get a
result from sendAndLoad() to exchange data with php files via POST,
but all the codes i tested didn't work.
The question about loadVariables and sendAndLoad on this list
seems to have no answer...
I browse all the web, but i can't get a ming native working example
using this...

Is this actionscript function unavailable with ming/action??????

Is there someone who's got a working example to share?????

Cheers.

120.
[email protected]



------------------------------

Message: 2
Date: Thu, 6 Nov 2003 08:31:19 +0100 (CET)
From: [email protected] (Wolfgang Hamann)
Subject: Re: [ming-fun] sendAndLoad
To: [email protected]
Message-ID: <wolfgang-1031106083119.A0E15735@loopback>


Hi,

all these things should work (I recently used netconnection quite a bit
instead of loadvars)
Are you sure you set movie version to 6?

Wolfgang

>> Peace to all mingers!!
>>
>> i'm currently testing ming0.3a from CVS.
>>
>> Actionscript load() works fine for me but i spend hours trying to get a
>> result from sendAndLoad() to exchange data with php files via POST,
>> but all the codes i tested didn't work.
>> The question about loadVariables and sendAndLoad on this list
>> seems to have no answer...
>> I browse all the web, but i can't get a ming native working example
>> using this...
>>


------------------------------

Message: 3
Date: Thu, 6 Nov 2003 15:57:37 +0100
From: Anews <[email protected]>
Subject: Fwd: Re: [ming-fun] help please! - Rotation
To: "** sLiMkRaZy **" <[email protected]>, [email protected]
Message-ID: <20031106145729.BYZO8542.kudu@there>
Content-Type: text/plain;  charset="iso-8859-1"

Hi!

Sorry for late post, but I had some problems with my ISP's SMTP server...

Here it goes again:

----------  Forwarded Message  ----------

Subject: Re: [ming-fun] help please! - Rotation
Date: Wed, 5 Nov 2003 10:47:07 +0100
From: Anews <[email protected]>
To: "** sLiMkRaZy **" <[email protected]>, [email protected]

Hi!

The following example works:

<?php
  ming_useswfversion(5);
  $m=new SWFMovie();
  $m->setDimension(533,555);
  $m->setBackground(0x00, 0xff, 0xff);
  $m->setRate(50);

  $mRotator=new SWFSprite();

  // just some text:
  $t = new SWFText();
  $font="/var/www/sanje/anim/ArialCE.fdb";
  if (!is_readable($font))
    die("Font not found: $font");
  $t->setFont(new SWFFont($font));
  $t->setHeight(24);
  $t->setColor(0x00, 0x00, 0x00);
  $t->moveTo(0,150);
  $t->addString("JUST SOME TEXT TO ROTATE");
  $mRotator->add($t);

  $mRotator->nextFrame();
  $imRotator=$m->add($mRotator);
  $imRotator->setName("rotator");
  $imRotator->rotate(45);

  // use ActionScript to rotate the object:
  $m->nextFrame();

  header("Cache-Control: private");
  header("Cache-Control: max-age=1");
  header('Content-type: application/x-shockwave-flash');
  header('Content-Disposition: attachment; filename="rotator.swf"');
  $m->output();
?>

Enjoy!

Anze

-------------------------------------------------------

------------------------------

Message: 4
Date: Thu, 6 Nov 2003 16:07:34 +0100 (MET)
From: [email protected]
Subject: [ming-fun] Flash UI Components
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

is it possible to use the FLAH UI Components from FLASH MX?

example:
this.createEmptyMovieClip("container_mc", 10);
container_mc.attachMovie("FComboBoxSymbol", "new_FComboBoxSymbol", 10);

Tobi

-- 
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++


------------------------------

Message: 5
Date: Thu, 06 Nov 2003 20:02:01 +0100
From: uniontek <[email protected]>
Subject: Re: [ming-fun] sendAndLoad
To: Wolfgang Hamann <[email protected]>
Cc: Ming MailingList <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=iso-8859-15

Le jeu 06/11/2003 à 08:31, Wolfgang Hamann a écrit :
> Hi,
>
> all these things should work (I recently used netconnection quite a bit
instead of loadvars)
> Are you sure you set movie version to 6?
>
> Wolfgang
>
> >> Peace to all mingers!!
> >>
> >> i'm currently testing ming0.3a from CVS.
> >>
> >> Actionscript load() works fine for me but i spend hours trying to get a
> >> result from sendAndLoad() to exchange data with php files via POST,
> >> but all the codes i tested didn't work.
> >> The question about loadVariables and sendAndLoad on this list
> >> seems to have no answer...
> >> I browse all the web, but i can't get a ming native working example
> >> using this...
> >>
>
>
Waoooooo!!!
Yes it works perfectly ...
My syntax was wrong, i was misundertanding the way sendAndLoad was
working.
Here is a modification of http://www16.brinkster.com/gazb/ming/ barchart
to demonstrate (if it could be usefull for someone).

a Simple phpvars.php
<?php
function get(){
$var1 = rand(0, 100);
$var2 = rand(0,100);
$var3 = rand(0,100);
$var4 = rand(0,100);
$var5 = rand(0, 100);
return
"var1=$var1&var2=$var2&var3=$var3&var4=$var4&var5=$var5&loaded=1";
}
if(isset($HTTP_POST_VARS["action"]))
{
   switch($HTTP_POST_VARS["action"])
   {
      case "get":
         $result = get();
         print $result;
         break;
   }
}else{
print "loaded=0";
}
?>

and the barchart file...

<?
Ming_setScale(20.00000000);
ming_useswfversion(6);
$movie = new SWFMovie();
$movie->setDimension(550,400);
$movie->setBackground(0xc0,0xc0,0xc0 );
$movie->setRate(31);

$strAction = "
// make bar
createEmptyMovieClip('bar', 1);
with(bar){
beginFill(255, 90); moveTo(0, 0); lineTo(0, -100); lineTo(40, -100);
lineTo(40, 0); lineTo(0, 0); endFill(); _x=-500; _y=-500;
}

// duplicate bar
for(i=1;i<6;i++) {
bar.duplicateMovieClip('bar'+i,100+i);
with(_root['bar'+i]){
_y=110; _x=110+i*42;
_yscale=0;
}
var col=new Color(_root['bar'+i]);
col.setRGB(random(0x666666));
};

// make textfield
createTextField('mytext',2,10,10,360,100);
with (mytext){
multiline = true;
wordWrap = true;
border = true;
text='loading data every fifteen seconds.....';
type = 'dynamic';
}

// make textformat
myformat = new TextFormat();
myformat.color = 0x006600;
myformat.size = 14;
myformat.font = '_serif';
myformat.bold = false;
mytext.setTextFormat(myformat);

// make bars rescale
onEnterFrame=function() {
for(i=1;i<6;i++) {
var disty=lv['var'+i]-this['bar'+i]._yscale;
var movey=disty/5;
this['bar'+i]._yscale+=movey;
}};

// make loadVars
lv = new LoadVars();
lv.action = 'get';
lv.onLoad = function(success) {
if(success) {
mytext.text='loaded= ' + success;
for(i=1;i<6;i++) { mytext.text+='\n this.var'+i+'=' + this['var'+i]; }
mytext.setTextFormat(myformat);  // hack
}else { mytext.text='failed'; }
};

// make callback
callback = function()  {
counter=++counter%3;
lv.sendAndLoad('phpvars.php');
};
counter=0;
lv.sendAndLoad('phpvars.php',_level0,POST);

// set callback
intervalID = setInterval( callback, 15000 );
";
$movie->add(new SWFAction(str_replace("\r", "", $strAction)));
//$movie->save("dynbarchart.swf");
header("Content-type: application/x-shockwave-flash");
$movie->output();

?>

Thanks


------------------------------

Message: 6
Date: Thu, 6 Nov 2003 20:27:58 +0100 (CET)
From: [email protected] (Wolfgang Hamann)
Subject: Re: [ming-fun] Flash UI Components
To: [email protected]
Message-ID: <wolfgang-1031106202758.A1115735@loopback>

Hi Tobi,

if someone volunteers in converting the user interface things into ming
scripts :)

Wolfgang

>> Hi,
>>
>> is it possible to use the FLAH UI Components from FLASH MX?
>>
>> example:
>> this.createEmptyMovieClip("container_mc", 10);
>> container_mc.attachMovie("FComboBoxSymbol", "new_FComboBoxSymbol", 10);
>>
>> Tobi
>>


------------------------------

Message: 7
Date: Thu, 6 Nov 2003 20:30:36 +0100 (CET)
From: [email protected] (Wolfgang Hamann)
Subject: [ming-fun] mingdocs
To: [email protected]
Message-ID: <wolfgang-1031106203036.A1215735@loopback>



I have uploaded the stuff that I could recover from the old neuralust site
to
http://wolfgang.remsnet.de/mingdocs - there are more broken links than
working ones to
start with :(

Wolfgang


------------------------------

_______________________________________________
ming-fun mailing list
[email protected]
http://www.opaque.net/mailman/listinfo/ming-fun


End of ming-fun Digest, Vol 6, Issue 5
**************************************