FL8: gradientFill
Ahoi Gemeinde,
geht es irgendwie, dass man eine Füllung nicht "linear"
oder "radial"
macht, sondern entlang einer Funktion?
Ich experimentiere jetzt schon eine zeitlang herum, unter
Zuhilfenahme
von F1, das scheint sich aber nicht zu spielen...
Da sind nur Beispiele mit Boxen und/oder radialen
Füllungen.
Momentan sieht es so aus:
http://www.greier-greiner.at/hc/mmwg/_screens/2006/gradientFill.jpg
Ich möchte die blaue Zone - nach schwarz == Hintergrund
abfallend - aber
immer "entlang der Kurve" haben. Mit "radial" kommt man auch
nicht hin,
hab ich schon versucht, v.a. weil die Kurve nicht immer
gleich ist
sondern aus einer Berechnung hergeleitet ist.
Hm.
greets,
harald
harald c. greier schrieb:
> Michael Kneib schrieb
>
>> vom gefühl her würd ih sagen da kommst du
mit beginGradientFill nicht
>> weiter.
>
> hm, das hab ich mir schon gedacht....
>
>> ist kurve und hintergrund eine form?
>
> Nein, die Kurve ist mit moveTo/lineTo gezeichnet, ebenso
der schließende
> Rahmen, mit einer dünneren Linienart. Der
Hinteregrund ist nur der HG
> des Films, schwarz eben.
aber du hast rahmen und curve nicht auf 2 clips verteilt?
>
>> ansonsten vieleicht
>>
>> import flash.filters.DropShadowFilter;
>> var blue:DropShadowFilter = new
DropShadowFilter(-20, 0, 0x0000FF, 1,
>> 40, 0, 1, 1, false, false, false);
>> kurve.filters = [blue];
>
> Werde das mal probieren. Kann man bei FL8 derlei
"Gezeichnetes" nicht
> irgendwie in eine Bitmap umwandeln, um dann mit deinem
Code weiter zu
> arbeiten?
für den dropshadow brahcts du ja kein bitmap, aber du
brauchst einen
movieclip, in der aus transparent|kurve|schwarz besteht, um
den schatten
dahinter zu verstecken, gibt sicher noch elegantere
lösungen.
um gezeichnetes in ein bitmapdataobjekt zu kriegen brauchst
du
prinzipiell nur BitmapData.draw(dermovieclipmitderzeichnung);
import flash.display.BitmapData;
import flash.filters.GlowFilter;
import flash.geom.Point;
//neues transparentes bitmapdatra von 300 x 300 px.
var bmp:BitmapData = new BitmapData(300, 300, true,
0x00000000);
//kurve (mc) in bitmapdata zeichnenvorausgesetzt die linie
//im mc kurve liegt nicht auf x=0 rum
bmp.draw(kurve);
// alles rechts der kurve schwarz füllen
//funktioniert nur wenn die kurve von y:0 bis y:300
durchgezogen ist
bmp.floodFill(299, 0, 0xFF000000);
//glowfilter erzeugen
var blue:GlowFilter = new GlowFilter(0x0000FF,1,50,0,1,2);
bmp.applyFilter(bmp, bmp.rectangle, new Point(0, 0), blue);
//bitmapdata auf bühne bringen
this.attachBitmap(bmp, 1, "auto", true);
Similar Messages
-
FL8: Interaktion mit Datenbank?
Hallo Leute,
ich bin mir nicht so ganz im Klaren, ob mit Flash sowas zu
machen w�re:
Der Film selber soll mittels mehrerer Drop-Down Men�s
eine Art
"Suchanfrage" soweit eingrenzen, damit am Schluss aus ner
Datenbank ein
zugeschnittenes Listing (z.B. von Kontaktinfos)
pr�sentiert wird.
Ich sch�tze mal, man kann mit Flash "nur" Variablen -
also quasi ein
Variablen-Set mittels ?,& - an ein PHP �bergeben,
dieses schaut in der
mySQL DB nach und dann wieder mittels Variablen-Set retour
nach Flash,
oder? Ginge das auch "einfacher", wenn ja, wie?
Zur Verf�gung hab ich FL8 Pro, am Client-Server ist
PHP und mySQL.
Kann mir wer ein paar Tipps geben?
greets,
haraldHi harald,
also im Prinzip bist du ja auf dem richtigen Weg.
Spannend bei solchen Sachen ist Flash Remoting, da man die
Daten gleich
im gew�nschten Format hin- und herschicken kann (zB
Array)
Und, es gab mal swiffSQL. SQL Satements direkt aus Flash
abschicken.
http://www.flashserver.de/cdrom/
ist leider down
aber vielleicht gehts hier noch
http://www.flashforum.de/forum/showthread.php?s=&threadid=124137
angucken kannst du dir das hier:
http://www.flashtool.de/fdb/
Das ist aber wirklich oldschool
Ansonsten
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part4_A SLR2.html
aber damit hab ich noch nichts gemacht.
Gru� Dominik (IPXLAN) Franzrahe
Ganz neu, ganz frisch:
http://www.superskank.com
ICQ:165771582
Skype: ipxlan
shock-box
mail: ipxlan<@>gmx.de
site:
http://www.shock-box.net
spirit link
mail: dominik.franzrahe<@>spiritlink.de
site:
http://www.spiritlink.de -
Ahoi Daheimgebliebene!
Wird Zeit, dass ich mich von MX2004 l�se.
Wo w�rdet Ihr Flash 8 kaufen? Amazon lockt zwar mit
g�nstigen Preisen,
nervt aber mit langen Lieferzeiten wg. US-Export. Bei allen
mir
bekannten lokalen Software- und Elektronikh�kern
(Thalie, Saturn,
Mediamarkt, Karstadt) hier in Hamburg finde ich im Netz
zumindest keinen
Hinweis darauf, dass sie Flash 8 �berhaupt im
Sortiment haben.
Vielleicht hat ja jemand einen hei�en Tipp, wo ich
Flash 8 richtig
g�nstig (& schnell) bekomme?
Gru�
Kryz
Christian Scholz
Grindelallee 27c
20146 Hamburg
Blog:
http://www.christianscholz.comHallo Christian.
Schau mal bei www.cancom.de, www.cyberport.de, oder
www.computeruniverse.net.
Bei diesen Shops bekommst du FL8 (Upgrade) ziemlich
g�nstig und auch
sehr schnell geliefert. Vertrauensw�rdig sind sie auch
auf alle F�lle.
Christoph
Christian Scholz schrieb:
> Ahoi Daheimgebliebene!
>
> Wird Zeit, dass ich mich von MX2004 l�se.
> Wo w�rdet Ihr Flash 8 kaufen? Amazon lockt zwar
mit g�nstigen Preisen,
> nervt aber mit langen Lieferzeiten wg. US-Export. Bei
allen mir
> bekannten lokalen Software- und Elektronikh�kern
(Thalie, Saturn,
> Mediamarkt, Karstadt) hier in Hamburg finde ich im Netz
zumindest keinen
> Hinweis darauf, dass sie Flash 8 �berhaupt im
Sortiment haben.
>
> Vielleicht hat ja jemand einen hei�en Tipp, wo
ich Flash 8 richtig
> g�nstig (& schnell) bekomme?
>
>
> Gru�
> Kryz
> -
Fl8 OSX - how to deactivate?
Hi there,
I want to move my Fl8 installation to a different Mac, but
I'm not sure
how to deactivate it on the current machine. I checked the
menus,
searched the Adobe KB, but to no avail.
Any pointers would be very much appreciated.
Cheers MartinHey fredb83300641,
If you could not see Deactivate option under Help menu, then Acrobat has been already deactivated and the Activate option must be clickable at that time.
If there is no Activate option as well under the Help menu, then Acrobat might not have activated properly on your machine.
So, you can simply uninstall & reinstall the software and then again activate it using the same serial key.
You can also refer the below mentioned link for Activation/Deactivation help for Acrobat :
Activation & Deactivation Help
Please try the same way and let me know.
Regards,
Anubha -
Hi NG,
ich experimentiere nebenbei mit ein paar neuen
Animationsmöglichkeiten herum.
Ich hab was ganz nettes gefunden (siehe
http://ffk06.flashforum.de/
in der Präsentation
von Thomas Wagner).
Und zwar gibts da eine Art verzögerte Pinselanimation,
die per BitmapData erzeugt wird.
Da ich das ganze explizit in Flash 8, nicht in AS3 machen
will, hab ich ein kleines Problem:
1. Ich bekomme es nicht so schnell hin, einen Kreis mit Hilfe
der BitmapData.setPixel()
Methode zu erzeugen. Gibt es Bibliotheken für die
Erzeugung von geometischen Formen via
setPixel()?
2. Es gibt drei Methoden, mit der man z.B. eine Kreisform in
ein BitmapData bekommt:
a) setPixel, s.o.
b) loadBitmap() (aus der Bibliothek), Problem: Es kann keine
Position angegeben werden,
für die Stelle an der das Bitmap attached werden soll.
Man könnte Movieclip-Container
erstellen und diese dann positionieren, aber das will ich
vermeiden, da ich die
Bitmap-Fläche allein nutzen will.
c) draw(), im Prinzip wie loadBitmap(), auch hier ist keine
Positionierung möglich (außer
über Movieclip-Container)
Also würde ich setPixel() nehmen. Vielleicht hab ich was
übersehen, oder jemand hat eine
andere Idee?
Grüße
Nick Weschkalnies
Web ||
http://www.medianetic.de
Blog ||
http://www.blog.medianetic.deDominik (ipxlan) Franzrahe schrieb:
> ...und damit geht bestimmt noch mehr
>
>
http://groups.csail.mit.edu/graphics/classes/6.837/F98/Lecture6/circle.html
>
>
>
import flash.display.*;
import flash.filters.*;
bmp = new BitmapData(600, 600, false, 0x000000);
var filter:BlurFilter = new BlurFilter(1.1, 1.1);
this.attachBitmap(bmp, 1);
counter = 0;
this.onEnterFrame = function() {
var w:Number = 10;
var h:Number = 10;
circleMidpoint(_xmouse, _ymouse,10,0x99CC00);
function circlePoints(cx, cy, x,y,pix)
var act = 0xFF0000;
if (x == 0) {
bmp.setPixel( cx, cy + y,act);
bmp.setPixel(cx, cy - y,pix);
bmp.setPixel(cx + y, cy,pix);
bmp.setPixel(cx - y, cy,pix);
} else
if (x == y) {
bmp.setPixel( cx + x, cy + y,act);
bmp.setPixel(cx - x, cy + y,pix);
bmp.setPixel(cx + x, cy - y,pix);
bmp.setPixel(cx - x, cy - y,pix);
} else
if (x < y) {
bmp.setPixel( cx + x, cy + y,act);
bmp.setPixel(cx - x, cy + y,pix);
bmp.setPixel(cx + x, cy - y,pix);
bmp.setPixel(cx - x, cy - y,pix);
bmp.setPixel(cx + y, cy + x,pix);
bmp.setPixel(cx - y, cy + x,pix);
bmp.setPixel(cx + y, cy - x,pix);
bmp.setPixel(cx - y, cy - x,pix);
function circleMidpoint(xCenter,yCenter, radius, c)
var pix = c;
var x = 0;
var y = radius;
var p = (5 - radius*4)/4;
circlePoints(xCenter, yCenter, x, y, pix);
while (x < y) {
x++;
if (p < 0) {
p += 2*x+1;
} else {
y--;
p += 2*(x-y)+1;
circlePoints(xCenter, yCenter, x, y, pix);
Gruß Dominik (IPXLAN) ranzrahe
Ganz neu, ganz frisch:
http://www.superskank.com
ICQ:165771582
Skype: ipxlan
shock-box
mail: ipxlan<@>gmx.de
site:
http://www.shock-box.net
spirit link
mail: dominik.franzrahe<@>spiritlink.de
site:
http://www.spiritlink.de -
FL8: Tween-Klasse / Pause-Funktion mit setInterval?
Kuckuck!
Per Klick auf einen Link ("xyz") wird in einen Container-MC
ein externer
Film ("A") eingelesen. In A wird ein MC ("B") per
Tween-Klasse bewegt.
Klicke ich erneut auf xyz, scheint A seltsamerweise nicht mit
seinem
Tweening wie erwartet bei Null anfangen. Es hat vielmehr den
Anschein,
dass Flash "sich merkt", an welchem Punkt das Tweening war,
und zeigt es
von dort an.
Habe leider kein (zeigbares) Beispiel, da das Projekt noch
nicht
freigegeben ist. Falls keine(r) eine Idee hat, was da los
ist, liefere
ich morgen mal ein Onlinebeispiel, wenn mein Problem noch
besteht.
Gibt es allgemein irgendwelche H�sslichkeiten bei der
Verwendung der
Tween-Klasse, die mir vielleicht unbekannt sind?
Ich m�chte in meinem Flashfilm diverse Vorg�nge
nacheinander ablaufen
lassen. Zwischen den Vorg�ngen (MC rollt hoch, MC
rollt runter, MC
blendet sich aus, usw.) sollen Pausen von mehreren Sekunden
sein.
Da es in Flash keine Wait/Pause-Funktion gibt und ich nicht
mit
onEnterFrame/getTimer-Kombos herumspielen m�chte
(obwohl es damit geht),
habe ich die Startvorg�nge aufgeteilt:
function wait () {
// wait before starting to scroll screenshot
slideScreen ("down");
function wait2 () {
// wait after scrolling down (screenshot moves upwards)
slideScreen ("up");
function wait3 () {
// wait before showing the next screenshot
showScreen ();
function showScreen () {
// show MC, still (code deleted for this example)
clearInterval (wid);
wid = setInterval ("wait", 1000);
function slideScreen (_modus) {
if (this._modus == "down") {
clearInterval (wid);
wid = setInterval ("wait2", 1000);
} else {
clearInterval (wid);
wid = setInterval ("wait3", 1000);
showScreen();
Ich habe diverse Zeilen Code gel�scht, da sie sicher
nicht wichtig sind.
Es funktioniert auch alles. Die Frage ist, macht ihr das
anders? Habt
ihr einen besseren Weg, die Zeit in Flash anzuhalten?
Gru� & Dankesch�ns
Christian Scholz
Grindelallee 27c
20146 HamburgChristian Scholz schrieb:
> Kuckuck!
>
> Per Klick auf einen Link ("xyz") wird in einen
Container-MC ein externer
> Film ("A") eingelesen. In A wird ein MC ("B") per
Tween-Klasse bewegt.
> Klicke ich erneut auf xyz, scheint A seltsamerweise
nicht mit seinem
> Tweening wie erwartet bei Null anfangen. Es hat vielmehr
den Anschein,
> dass Flash "sich merkt", an welchem Punkt das Tweening
war, und zeigt es
> von dort an.
Also ich w�rde mal versuchen den Container dynamisch
zu erstellen, dann kannst Du ihn
anschlie�end vorher immer entfernen, also so:
myButton.onRelease = function() {
removeMovieClip(container);
this.createEmptyMovieClip("container",1);
loadMovie("film.swf",container);
Das bewirkt dann vielleicht, dass es zur�ckgesetzt
wird.
> Nee? Was nimmst du denn Sch�nes - onEnterFrame?
Ich habe die Tweening von Adobe auch noch nie benutzt, aber
ich wei� auch nicht, was Du
damit jetzt genau anstellst.
Ich benutze selbst die Movieclip Tweening Prototypes, siehe:
http://proto.layer51.com/d.aspx?f=1417
http://proto.layer51.com/d.aspx?f=1165
Neue Version:
http://www.mosessupposes.com/Fuse/
Gr��e
Nick Weschkalnies
Web ||
http://www.medianetic.de
Blog ||
http://www.blog.medianetic.de -
FL8: Array.sortOn() nur mit indiziertem Array?!
Hi,
normalerweise w�rde ich das nicht fragen, aber ich
habe gerade Schwierigkeiten mit
Array.sortOn() und da hab ich mir die Hilfe nochmal ganz
genau angesehen, da steht:
"sortOn (Array.sortOn-Methode)
Sortiert die Elemente in einem Array nach einem oder mehreren
Feldern im Array. Das Array
muss folgende Merkmale aufweisen:
Es handelt sich um ein indiziertes und kein assoziatives
Array."
Mhm, ich dachte eigentlich, dass die Methode sort()
ausschlie�lich f�r indizierte Arrays
einsetzbar ist und die Methode sortOn() gerade f�r
assoziative Arrays geeignet ist.
Ist da etwas falsch beschrieben oder hab ich was falsch
verstanden?
var myArray:Array = new Array({x:10,y:20});
Das ist doch ein assoziatives Array und dass w�rde ich
so sortieren.
myArray.sortOn("x",16);
Gr��e
Nick Weschkalnies
Web ||
http://www.medianetic.de
Blog ||
http://www.blog.medianetic.deNick Weschkalnies schrieb:
> Mhm, ich dachte eigentlich, dass die Methode sort()
ausschlie�lich f�r
> indizierte Arrays einsetzbar ist und die Methode
sortOn() gerade f�r
> assoziative Arrays geeignet ist.
> Ist da etwas falsch beschrieben oder hab ich was falsch
verstanden?
>
> var myArray:Array = new Array({x:10,y:20});
>
> Das ist doch ein assoziatives Array und dass
w�rde ich so sortieren.
>
> myArray.sortOn("x",16);
>
So, jetzt erg�nze ich den Thread mal um mein
wirkliches Problem:
W�re nett, wenn sich jemand die Zeit nimmt, sich das
anzuschauen:
http://www.medianetic.de/mmng/Liniendiagramm.zip
Ich frage das jetzt nochmal explizit, da ich wirklich keinen
Fehler finde und schon
jemanden fachkundigen drauf angesetzt habe, der aber auch ins
Gr�beln gekommen ist.
Zur Erl�uterung:
Gibt erstmal einfach z.B. folgender Werte ein:
F�r X: 0,0,0,0 und Y: 6666,66,777,42
Dann tracert er als h�chsten Wert des nach Y
sortierten Arrays: "777"
Ich werd hier fast verr�ckt, weil er manchmal bei
anderen Werten mir das Array richtig zu
sortieren scheint. Irgendwas stimmt da �berhaupt
nicht.
Die for-Schleife hab ich nur zum Testen gemacht, eigentlich
sollte es auch mit dem
Auskommentierten Code funktionieren.
Wer wei� was? ;)
Gr��e
Nick Weschkalnies
Web ||
http://www.medianetic.de
Blog ||
http://www.blog.medianetic.de -
[FL8] Evitar que se me encoja el texto al disminuir el ancho de un cuadro
Hola amigos como puedo evitar que si en un cuadro de texto
estatico tengo ya
un texto escrito y a ese cuadro de texto le tengo que cambiar
el tama�o y
haerlo mas estrecho el texto que tengo dentro se me encoja en
vez de
ajustarse el texto dentro de la caja. No encuentro como
hacerlo.
GraciasHola:
pica sobre el texto y cuando te salga el cursor para
escribir, agranda
desde el manejador del extremo el cuadro, asi no se te
deformara.
Espero te sirva
Un saludo
Blue escribi�:
> Hola amigos como puedo evitar que si en un cuadro de
texto estatico tengo ya
> un texto escrito y a ese cuadro de texto le tengo que
cambiar el tama�o y
> haerlo mas estrecho el texto que tengo dentro se me
encoja en vez de
> ajustarse el texto dentro de la caja. No encuentro como
hacerlo.
> Gracias
>
> -
[FL8] Subindices y superindices en textfield (html)
Buenas,
No se si alguien ha intentado alguna vez meter subindices y
superindices en
un campo de texto dinámico. En html se soportan los tags
<sup> y <sub> pero
flash no hace ni caso en estos campos.
Conocéis alguna forma de poder representar esto en un
campo dinamico?
Gracias y saludosHe estado investigando un poco respecto al tema y existen
varias posibles
"soluciones". Una de ellas es crear una fuente especial con
los numeros en
"superscript" o "subscript", y luego asignarle un
<font> con esta fuente al
caracter que queramos.
http://blog.ggshow.com/index.php/reference/2007/04/19/how_to_use_subscript_aamp_superscrip t_in
Otra solución es usar caracteres especiales de un
encoding estandar dado. El
2 que era el que me interesaba en este caso y el código
es "²". Esto se
asigna a un campo html dinámico y cuela :P
Podéis ver más codigos aquí:
http://www.zytrax.com/tech/web/entities.html
Un saludo
"forums.macromedia.com" <[email protected]>
escribió en el
mensaje news:fbm0st$2n1$[email protected]..
> Buenas,
>
> No se si alguien ha intentado alguna vez meter
subindices y superindices
> en un campo de texto dinámico. En html se soportan
los tags <sup> y <sub>
> pero flash no hace ni caso en estos campos.
>
> Conocéis alguna forma de poder representar esto en
un campo dinamico?
>
> Gracias y saludos
>
> -
[FL8] ¿Por que no me hace caso flas al publicar?
Hola, no consigo que al publicar, en el html me centre el swf
en vertical y
en horizontal, ya he conseguido quitar el dichoso recuadro,
pero en la
publicacion siempre se me alinea arriba a la izquierda
¿como puedo centrarlo
del todo?
GraciasGoogle Translate:
Spanish to English translation
happens that since IOS software update 4.3 I had problems with my ipod touch 8G 4Gis.
The display is distorted when I get updates from facebook or twitter.
Months ago I came wanting to upgrade to the other iOS (4.3.1 and 4.3.2) but I can not.
paracer me a message saying "the ipod that has not been updated because it has notbeen able to connect to server
iPod Updater or is temporarily unavailable "
I would like to know I can do about it, please
- First try resetting your iPod
- Next try restoring your iPod via iTunes. First from backup and then to factory defaults/new iPod.
The message about the update server is just what is says. For some reason your computer could not contact the update server. I would just try again. Restoring should end up updating your iOS.
happens that since IOS software update 4.3 I had problems with my ipod touch 8G 4Gis.
The display is distorted when I get updates from facebook or twitter.
Months ago I came wanting to upgrade to the other iOS (4.3.1 and 4.3.2) but I can not.
paracer me a message saying "the ipod that has not been updated because it has notbeen able to connect to server
iPod Updater or is temporarily unavailable "
I would like to know I can do about it, please -
[FL8] bocadillo en cursor
hola foro,
creo recordar que hace algún tiempo alguien puso un post
relacionado con los
bocadillos amarillos que salen junto al cursor al pasar sobre
un link o un
botón, etc...
estoy revisando los post y no consigo encontrarlo y en la
ayuda de flash
tampoco encuentro nada al respecto, alguien se acuerda o
alguien puede
decirme cómo crearlos? estoy intentando hacerlo con mc's
junto con las
coordenadas x e y del puntero pero me estoy volviendo loco.
gracias.
::javier.gracias pedro. en cuanto tenga mas de 30min libres les echo
una ojeada.
"Pedro_pfphoto" <[email protected]>
escribió en el mensaje
news:egtp4v$aq2$[email protected]..
> Hola:
> aqui te envio unos ejemplos:
>
http://www.after-hours.org/blog/archives/2004/09/21/tooltip_component/
>
http://www.after-hours.org/blog/archives/2004/09/08/tooltip-dinamico/
>
http://www.after-hours.org/blog/archives/2005/06/29/tostadense_tooltip_2/
>
http://www.after-hours.org/blog/archives/2004/03/29/macromedia_flash_mx_tooltip/
>
> Espero que te sirvan
> Un saludo
>
>
> javiestufa escribió:
>> hola foro,
>> creo recordar que hace algún tiempo alguien
puso un post relacionado con
>> los bocadillos amarillos que salen junto al cursor
al pasar sobre un link
>> o un botón, etc...
>> estoy revisando los post y no consigo encontrarlo y
en la ayuda de flash
>> tampoco encuentro nada al respecto, alguien se
acuerda o alguien puede
>> decirme cómo crearlos? estoy intentando hacerlo
con mc's junto con las
>> coordenadas x e y del puntero pero me estoy
volviendo loco.
>> gracias.
>>
>> ::javier.
>> -
[FL8] Que estoy haciendo mal?
Tengo un MC llamado br, es una pequeña animacion de
interpolacion de 10
frames, insertado en una escena, tiene un stop() solo en el
primer frame.
Y en el primer frame de la escena agrego el siguiente codigo:
onEnterFrame = function ( ){
br.gotoAndPlay(2);
¿Porque br no se mueve? Muestra el fotograma 2 quieto
como si hubiese sido
gotoAndStop(2).
Si en vez del anterior pongo:
onEnterFrame = function ( ){
br.play( );
funciona, pero no sin parar. ¿que esta mal?
Gracias...
JºSin palabras Juan! ya dije alguna vez que deberias escribir
un libro... si
los "helps" del Flash fuesen tan claros como vos, no estaria
haciendo
preguntas.... mil gracias!
Jº
"Juan Muro `8¬}" <[email protected]>
escribió en el mensaje
news:[email protected]...
> No estás haciendo nada mal Joe:
> Y no es que no te funcione el código
> onEnterFrame = function ( ){
> br.gotoAndPlay(2);
> }
> Sino que te funciona 'demasiado bien' para lo que
quieres, je, je.
> El onEnterFrame es un disparador permanente (lo que
significa que está
> SIEMPRE ejecutándos a la velocidad de
reproducción de los fotogramas) de
> un evento que ejecuta una acción incluida dentro de
una función. Por tanto
> se estará ejecutando siempre que el cabezal lector
haya pasado por el
> fotograma donde lo escribiste. Así que el pobre
(sufre de 'ejecución
> precoz') está intentando decirle al movieclip 'br'
que desplace el cabezal
> lector desde el fotograma 2, pero cuando empieza a
hacerlo vuelve a
> decírselo y vuelve a hacerlo cayendo en un
gatillazo (es lo que tienen los
> disparadores, ja, ja). Para comprobarlo escribe:
> onEnterFrame = function ( ){
> br.gotoAndPlay(2);
> trace("¡ay!");
> }
> Y verás cuántas veces se queja, (juasjuas).
> ¿Qué maneras tenemos de solucionarlo?. Depende
de lo que quieras hacer.
> 1ª.- Si, como parece, lo que quieres es que se
ejecute la animación una
> sola vez (y se pare) cuando pasa por el fotograma donde
tienes puesto el
> movieclip, lo más sencillo es que pongas un
> play();
> en el segundo fotograma y solo un
> br.gotoAndPlay(2);
> en el fotograma donde ahora pones el disparador de
eventos. Es decir que
> si hay que poner un disparador de eventos, pues se pone,
pero ponerlo por
> ponerlo es tontería.
> 2ª.- Pero si quieres hacer otras cosas para las que
te hace falta el
> disparador tambien puedes solucionarlo sustituyendo tu
> onEnterFrame = function ( ){
> br.gotoAndPlay(2);
> }
> por un
> onEnterFrame = function ( ){
> br.gotoAndPlay(2);
> delete onEnterFrame;
> }
> Y con ello tras dar la orden para la primera
animación se para porque
> borramos el disparador.
> 3ª.- Y siempre existe la posibilidad de utilizar el
setInterval(), que no
> se ejecuta permanentemente a la velocidad de los
fotogramas, sino en un
> intervalo que especifiques.
> ¿Supe explicarme?, ¿Ya lo comprendiste?. -Es
la eterna duda que siempre me
> queda cuando hablo de estas tonterías-.
> Salu2
> `8¬}
> Juan Muro
>
>
> "Joe Vega" <[email protected]> escribió en el
mensaje
> news:[email protected]...
>> Tengo un MC llamado br, es una pequeña
animacion de interpolacion de 10
>> frames, insertado en una escena, tiene un stop()
solo en el primer frame.
>> Y en el primer frame de la escena agrego el
siguiente codigo:
>>
>> onEnterFrame = function ( ){
>> br.gotoAndPlay(2);
>> }
>>
>> ¿Porque br no se mueve? Muestra el fotograma 2
quieto como si hubiese
>> sido gotoAndStop(2).
>>
>> Si en vez del anterior pongo:
>>
>> onEnterFrame = function ( ){
>> br.play( );
>> }
>>
>> funciona, pero no sin parar. ¿que esta mal?
>>
>> Gracias...
>>
>> Jº
>>
>
> -
[FL8] Otra de formularios.
Hola foro,
Situación... tengo una película "madre" que llama a
otra película .swf en la
que tengo un formulario.
Problema... cuando compruebo la película del formulario
todo funciona
correctamente, pero cuando abro la pelicula "madre" y abre la
película del
formulario, este se ve correctamente, pero no muestra las
cajas de
introducción de texto, no se vén, me refiero a que
el puntero cambia, pero
no se muestra qué es lo que se esta introduciendo.
En la película "madre" llamo a las otras películas
de la siguiente manera:
function cargar(archivo){
carga.createEmptyMovieClip("pelicula",getNextHighestDepth());//2);
carga.pelicula.loadMovie(archivo);
Alguien sabría decirme qué es lo que hago mal o
qué es lo que sucede?
Gracias a todos.
::javierGracias Juan.... primero disculparme con ::Ale que le
contesté a su mensaje
pero en vez de responder al grupo le dí a responder al
usuario y hoy me ha
llegado el mensaje de error... jejeje A ve si en este
contesto a los dos.
1) Revisé la exportación como decía Ale y
tanto una película como otra las
exporto en Flash Player 8 y en ActionScript 2, y las dos
estas creadas con
Flash 8
2) Fallo mío en el copiar/pegar de la línea que me
comentas, Juan.... al
final podrás comprobar que hay un // antes del 2); ya
que era la opción que
tenía puesta anteriormente, y la cambié a
,getNextHighestDepth() a ver si
así me funcionaba.
Probaré de lá última forma que me comentas,
Juan, a ver si así me funciona.
Gracias de nuevo profe.
::javier
"Juan Muro `8¬}" <[email protected]>
escribió en el mensaje
news:[email protected]...
> Efectivamente necesitas el Flash Player 7, o superior,
para reproducir
> adecuadamente este swf, pero te seguirá fallando si
usas algún componente
> de AS2. No obstante, tienes mal declarada la
función de creación de un
> nuevo movieclip vacío dentro del contenedor llamado
carga.
> Primero prueba a sustituir la linea
>
carga.createEmptyMovieClip("pelicula",getNextHighestDepth());//2);
> por esta:
>
carga.createEmptyMovieClip("pelicula",getNextHighestDepth());
> Y si estás programando en AS" deberías
declarar la función como:
> public
createEmptyMovieClip(NombreDelMovieClipDuplicado:String,
> Profundidad:Number) : MovieClip;
> Salu2
> `8¬}
> Juan Muro
>
> "javiestufa" <[email protected]> escribió
en el mensaje
> news:[email protected]...
>> Hola foro,
>>
>> Situación... tengo una película "madre"
que llama a otra película .swf en
>> la que tengo un formulario.
>> Problema... cuando compruebo la película del
formulario todo funciona
>> correctamente, pero cuando abro la pelicula "madre"
y abre la película
>> del formulario, este se ve correctamente, pero no
muestra las cajas de
>> introducción de texto, no se vén, me
refiero a que el puntero cambia,
>> pero no se muestra qué es lo que se esta
introduciendo.
>>
>> En la película "madre" llamo a las otras
películas de la siguiente
>> manera:
>>
>> function cargar(archivo){
>>
carga.createEmptyMovieClip("pelicula",getNextHighestDepth());//2);
>> carga.pelicula.loadMovie(archivo);
>> .........
>>
>>
>> Alguien sabría decirme qué es lo que hago
mal o qué es lo que sucede?
>> Gracias a todos.
>>
>> ::javier
>>
>
> -
[Fl8] Posicionamiento
Buenos días:
En realidad no me interesa estar entre los primero diez ni
nada que se
le parezca (por ahora). Pero mi sitio de juegos (
www.juegoxox.tk ) es
ignorado por google. Esta hecho íntegramente en flash y
en el index le
coloqué unos meta tags que decribiera el sitio. Me di el
alta en google y
nada.
Cualquier ayuda que me puedan dar la agradeceré."Markus" <[email protected]_no_spam> escribió en el
mensaje
news:fcoqi4$mpc$[email protected]..
> No sé si será eso pero el alta en google que
yo sepa no es inmediata y
> puede
> tardar un par de meses en aparecer...
>
>
> "Nahuel Garcia" <[email protected]>
escribió en el mensaje
> news:fcopga$lha$[email protected]..
>> Buenos días:
>> En realidad no me interesa estar entre los primero
diez ni nada que se
>> le parezca (por ahora). Pero mi sitio de juegos (
www.juegoxox.tk ) es
>> ignorado por google. Esta hecho íntegramente en
flash y en el index le
>> coloqué unos meta tags que decribiera el sitio.
Me di el alta en google y
>> nada.
>> Cualquier ayuda que me puedan dar la
agradeceré.
Por otro lado los dominios .tk usan frames.... too bad for
google
tratá de evitarlos
Saludos!
Luciano A. Ferrer -
[FL8] Texto rotado
Hola foro.... aquí va la duda....
Desde actionscript creo un clip de película, dentro de
éste creo con
actionscript una caja de texto... esta caja la relleno con
datos extraídos
de un XML... hasta aquí todo me sale correcto, pero a
partir de aquí es la
duda.... también mediante actionscript hago rotar -5
grados el clip de
película y el texto deja de aparecer.
Una vez leí aquí en el foro que para que eso no
ocurriese había que hacer el
el texto fuese también un clip de película, pero no
logro encontrar ese
post, así que si alguien me sabría explicar como
solucionar este tema mil
gracias por adelantado.... o es que realmente no se puede
hacer que el texto
sea visible si se rota el clip de película?
Un saludo a todos.
::javier.Piaccere, signore.
Salu2
`8¬}
Juan Muro
"javiestufa" <[email protected]> escribió en el
mensaje
news:[email protected]...
> Para ser mas preciso, tuve que eliminar lo de crear las
cajas de texto con
> actionscript y crearlas directamente desde flash,
así en cada una de ellas
> hacer la importación.
> Gracias, Mr.Juan.
>
> "Juan Muro `8¬}" <[email protected]>
escribió en el mensaje
> news:[email protected]...
>> perdona javi: No es caracter/Todos los caracteres,
es incorporar/todos
>> los caracteres, o bien eliges el juego de caracteres
de tu fuente
>> correspondientes al idioma que quieras, que siempre
pesará menos. Dicha
>> propiedad está en la ventana de propiedades del
campo de texto dinámico.
>> Vaya, que de lo que se trata es de que incorpores
los contornos de la
>> fuente.
>> Salu2
>> `8¬}
>> Juan Muro
>> "javiestufa" <[email protected]>
escribió en el mensaje
>> news:[email protected]...
>>> ok juan! me acabo de perder y no tengo gps.
>>> te explico... en el archivo .fla tengo la fuente
como un elemento en la
>>> biblioteca si es a eso a lo que te refieres,
pero sigo sin ver la caja
>>> de texto al rotar....
>>> si no es eso.... es que no sé por
dónde encontrar lo de carácter/todos
>>> los carácteres, porque incluso en la fuente
en la biblioteca le doy a
>>> propiedades y selecciono para "texto mapa de
bits" y tampoco es eso....
>>> lo dicho... dónde encuentro eso que me
dices?... dónde lo compro?
>>>
>>> Gracias,
>>>
>>> ::javier.
>>>
>>>
>>> "Juan Muro `8¬}" <[email protected]>
escribió en el mensaje
>>> news:[email protected]...
>>>> Javi:
>>>> Tienes que incorporar los contornos de la
fuente que uses. Par ello
>>>> teniendo seleccionado el texto dinámico
le das a caracter/todos los
>>>> caracteres.
>>>> Tu peli pesará más.
>>>> Salu2
>>>> `8¬}
>>>> Juan Muro
>>>>
>>>> "CMacias" <[email protected]>
escribió en el mensaje
>>>> news:[email protected]...
>>>>> No sabría que contestarte, pero al
menos me consuela saber que no soy
>>>>> el único
>>>>> que trabaja en domingo 8¬(
>>>>>
>>>>>
>>>>> "javiestufa"
<[email protected]> escribió en el mensaje
>>>>>
news:[email protected]...
>>>>> Hola foro.... aquí va la duda....
>>>>> Desde actionscript creo un clip de
película, dentro de éste creo con
>>>>> actionscript una caja de texto... esta
caja la relleno con datos
>>>>> extraídos
>>>>> de un XML... hasta aquí todo me
sale correcto, pero a partir de aquí
>>>>> es la
>>>>> duda.... también mediante
actionscript hago rotar -5 grados el clip de
>>>>> película y el texto deja de
aparecer.
>>>>> Una vez leí aquí en el foro
que para que eso no ocurriese había que
>>>>> hacer el
>>>>> el texto fuese también un clip de
película, pero no logro encontrar
>>>>> ese
>>>>> post, así que si alguien me
sabría explicar como solucionar este tema
>>>>> mil
>>>>> gracias por adelantado.... o es que
realmente no se puede hacer que el
>>>>> texto
>>>>> sea visible si se rota el clip de
película?
>>>>>
>>>>> Un saludo a todos.
>>>>>
>>>>> ::javier.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Maybe you are looking for
-
Cancellation of RETURN delivery made by Quality
Hi All, I want to cancel the return delivery made to a vendor. It was posted in QA11(usage decision) in Quality Mgmt. In MBST, the system doesnot allow to cancel the document. How should i proceed ? pl give me a direction. regards gnk Edited by: gnk
-
PrintShop 7: can I use other label templates?
Greetings. PS 7 alreday has a number of Avery Label templates builtin. Can I add/use more than those included? They are available from Avery online. Thanks for your time!
-
I18n - Resource Bundle Bugs ??
I have a string in a resource bundle containing HTML tags such as <BR> etc. The string is displayed in a static text component. The escape property of this component is set. Nevertheless all HTML tags are displayed as text! Is this a bug?? Tom
-
Installer error? - cannot find files
I am running Arch 0.7 on one computer, and was going to install it on another. However, the CDROM installation stopped with the messages error: /mnt/var/lib/pacman/current/kbd-12.1-1/desc: Nosuch file o error: /mnt/var/lib/pacman/current/kbd-12.1-1/
-
I cant make an in app purchase within a game, any ideas how to correct this?