RE: Flash Q&A Thread 6 - We help! (Full Version)

All Forums >> [Gaming Community] >> [Legends and Lore] >> Artists of Legend >> Art Academy



Message


Sea -> RE: Flash Q&A Thread 6 - We help! (12/22/2009 15:57:51)

@atriax

quote:

If you don't want the character to go to the left, on the boundarie, add this:

onClipEvent(enterFrame) {
if(this.hitTest(_root.player)) {
_root.player._x += 10;
}
}



If you don't want the character to go to the right, just change the + symbol to -, like this:

onClipEvent(enterFrame) {
if(this.hitTest(_root.player)) {
_root.player._x -= 10;
}
}



Now, if you don't want the character to go up, add this:

onClipEvent(enterFrame) {
if(this.hitTest(_root.player)) {
_root.player._y += 10;
}
}



But if you don't want it to go down, just change the symbols:

onClipEvent(enterFrame) {
if(this.hitTest(_root.player)) {
_root.player._y -= 10;
}
}


Thanks Dudu
(thats the borders)


as for the animations:

make it a mc (i assume it is)

and make 3 frames inside it (double click)
name the Idle frame "Idle" (without quotations)
the right animation "R"
and the left animation "L"
(also U and D if you want, but if you don't have them then don't worry)

this works for all Right, left, up, and down.


onClipEvent(load){
speed=10;
}
onClipEvent(enterFrame){
a = "Idle";
if(Key.isDown(Key.RIGHT)){
_x+=speed;
a = "R";
}
if(Key.isDown(Key.LEFT)){
_x-=speed;
a = "L";
}
if(Key.isDown(Key.UP)){
_y-=speed;
a = "U";
}
if(Key.isDown(Key.DOWN)){
_y+=speed;
a = "D"
}
this.gotoAndPlay(a);
}


put that on the character




Atriax -> RE: Flash Q&A Thread 6 - We help! (12/23/2009 13:21:20)

Thanks, those really helped :)




Sea -> RE: Flash Q&A Thread 6 - We help! (12/24/2009 13:51:00)

Help -_-
[image]http://content.screencast.com/users/seahawks4312/folders/Jing/media/a722b07d-a6a0-4062-ae98-93c55fec99d3/2009-12-24_1350.png[/image]
the file name is 3 letters,
its not open anywhere else


Its better, i think it just needed a break




The Braken Bard -> RE: Flash Q&A Thread 6 - We help! (12/25/2009 19:41:29)

Can someone help?
I drew out an outline in red line but I want to change the color to black. How do I do that?
Also the scan of my weapon that I put into Flash turned out to be upside down. How do I turn it around?




Denolth -> RE: Flash Q&A Thread 6 - We help! (12/25/2009 20:04:00)

The Braken Bard, in Flash Properties panel, select the Stroke Color option. If you can't find it, please go to the picture linked below.

http://i494.photobucket.com/albums/rr309/dudu_95/flashex.jpg <-- Click here.

To rotate a bitmap/symbol/etc, right click it and select the Free Transform option. Then you will be able to transform the picture freely. If you want to redo something, simply press Ctrl+Z or Edit -> Undo *action*! ^^




~JW~ -> RE: Flash Q&A Thread 6 - We help! (12/25/2009 22:38:17)

Ive made the switch to AS3, and was wondering how to assign variable names to a text input field. How can I execute and "if" statement after that?




The Braken Bard -> RE: Flash Q&A Thread 6 - We help! (12/25/2009 23:10:10)

Ok thanks! But now, for some reason, when I use the Paint Bucket Tool it won't color in some parts. Can someone help?




~JW~ -> RE: Flash Q&A Thread 6 - We help! (12/25/2009 23:13:09)

It might not be fully connected. Check for breaks.




The Braken Bard -> RE: Flash Q&A Thread 6 - We help! (12/25/2009 23:56:17)

Ah ok. It seems to be working now. Thanks!




Sea -> RE: Flash Q&A Thread 6 - We help! (12/26/2009 13:39:32)

@JW

I was just now looking at AS3.
and came across this

AS2 - AS3 removed properties
I haven't taken a thorough look at it, but i believe it is all done in the timeline.

You might also want to check out this.
12 great ways to learn Actionscript 3 in flash

Hope it helps




~JW~ -> RE: Flash Q&A Thread 6 - We help! (12/26/2009 19:19:30)

http://www.5etdemi.com/convert/index.php
Cool little as2- as3 convertor :D




Sea -> RE: Flash Q&A Thread 6 - We help! (12/26/2009 19:28:42)

Thats cool!




biG frend -> RE: Flash Q&A Thread 6 - We help! (12/27/2009 8:32:48)

Bare in mind that convertor won't do the whole job for you. You still have to go back into your new code and instance stuff properly.




Sea -> RE: Flash Q&A Thread 6 - We help! (12/28/2009 17:36:30)

Anyone now why this wont work?

http://www.swfcabin.com/open/1262036431

Codes:

on the frame-

charlink="http://www.aq.com/aw-character.asp?id="


on the "Get my url" button-

on(press){
link=_root.charlink+_root.aqwname
}


on the "goto url" button-

on(press){
getURL(_root.charlink+_root.aqwname);
}




hucki -> RE: Flash Q&A Thread 6 - We help! (12/28/2009 17:42:40)

Sea:
On the text box where you type in your AQW username, click on the 'Auto-Kern' button.
That should fix it.




Sea -> RE: Flash Q&A Thread 6 - We help! (12/28/2009 17:50:47)

auto kern is on, so your saying i should turn it off right? k, testing now.

Thanks! it works!

http://www.swfcabin.com/open/1262038060




The Braken Bard -> RE: Flash Q&A Thread 6 - We help! (1/16/2010 10:24:41)

How do you shade in Flash?
I mean, I know how to shade, but how do you do it in Flash?




razackie -> RE: Flash Q&A Thread 6 - We help! (1/16/2010 11:27:32)

put in shading lines with the line tool, curve them with the pointer tool, fill in the area with the paintbucket tool, then click on the lines and press delete to delete the shading lines.




Vampire and Human -> RE: Flash Q&A Thread 6 - We help! (1/18/2010 17:40:16)

http://www.kirupa.com/developer/flashcs3/guide_shading_flash.htm

Here's a tutorial explaining the basics. Basically everything razackie said but with cute pictures.

Enjoy.





biG frend -> RE: Flash Q&A Thread 6 - We help! (1/26/2010 16:11:01)

Quick hello. Can someone explain how if possible you can use index() in flash?




biG frend -> RE: Flash Q&A Thread 6 - We help! (1/29/2010 16:50:57)

Another question, Is it possible to alter properties of a song with actionscript (E.g pitch, BPM, channel, etc..)




Vampire and Human -> RE: Flash Q&A Thread 6 - We help! (1/29/2010 21:45:58)

Via http://www.kirupa.com/developer/mx/volume_slider.htm you can change sound volume, but not pitch etc. as far as I am aware.

Audacity is a good, free program to use if you want to record/edit sounds then put them into Flash.

http://audacity.sourceforge.net/


As for index(), I have no idea what you are referring too.




biG frend -> RE: Flash Q&A Thread 6 - We help! (1/30/2010 9:11:45)

Well its a function in excell thats used so that you don't have to use a bunch of nested if's instead it reads data from an array and each piece of data outputs with a number (e.g first piece is 0, second piece is 1, third 2 etc).

And as for audio, I have a copy of AVSAudio Editor but I wanted to make a dynamic music system ;(




MegaPoster404 -> RE: Flash Q&A Thread 6 - We help! (1/30/2010 9:33:02)

Question. I have:

         _root.tradecheck1 = _root.CharName.charAt(2);
            _root.tradecheck2 = _root.CharName.charAt(5);
            _root.tradecheck3 = _root.CharName.charAt(6);
            if (_root.tradecheck1 == "") {
                _root.tradecheck1 = "B";
            }
            if (_root.tradecheck2 == "") {
                _root.tradecheck2 = "L";
            }
            if (_root.tradecheck3 == "") {
                _root.tradecheck3 = "H";
            }

And tradecheck1 always comes out as E, tradecheck2 always comes out as F, and tradecheck3 always comes out as O, no matter what CharName was equal to.

Ah, the code works fine, just _root.CharName equaled

<TEXTFORMAT LEADING="2"><P ALIGN="CENTER"><FONT FACE="AR CENA" SIZE="21" COLOR="#000000" LETTERSPACING="0" KERNING="0">Value here</FONT></P></TEXTFORMAT>

How do I fix this?

And yes, it does this with Auto Kern both on and off. So that's not it.




//.Shadow.\\ -> RE: Flash Q&A Thread 6 - We help! (1/30/2010 15:04:14)

Try unsetting the html on the text thing if auto kern dosent do it.

The button is;
[image]http://team.sf-e.co.uk/Parker/AE/printscreenbof.PNG[/image]

~Parker




Page: <<   < prev  3 4 [5] 6 7   next >   >>

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition
0.15625