This is a discussion on "updating old actionscript for flash8 and dot syntax" within the Flash & Multimedia Forum section. This forum, and the thread "updating old actionscript for flash8 and dot syntax are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
updating old actionscript for flash8 and dot syntax
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
updating old actionscript for flash8 and dot syntax
hey guys,
i need some help updating some old action script, i cant seem to get it to work. Its in old slash syntax and im trying to bring it over to dot, but i keep getting errors. heres the code below, any help would be greatly appreciated!!! on my slider bar : /:value = (marker:_x/(_width-marker:_width))*580; on the second keyframe prevFrame(); play(); inside my scrolling MC left = _x-_width/2; right = Number(_x)+Number(_width/2); friction = "0.9"; set("new", /:value); speed = eval("new")-old; old = eval("new"); setProperty("", _x, Number(_x)+Number((speed*/:factor))); prevFrame(); play(); |
|
|
|
#2
|
|||
|
|||
|
Re: updating old actionscript for flash8 and dot syntax
Can you post an example of what you are trying to accomplish and/or the errors you are getting?
If this is older code (which is looks like is) , there is usually a quicker/easier way to accomplish whatever you are trying to accomplish. And it looks like you have a scrolling MC here, this is definitely a lot easier than what I am seeing here.
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
|
#3
|
|||
|
|||
|
Re: updating old actionscript for flash8 and dot syntax
www.designedmemory.com/tester/slide.html
its pretty basic, its just a scroll bar moving a movie clip right to left basically, nothing crazy. but the file i have is outdated and im not up to date with action script and the best way to do this any ideas? i also want to scroll much larger images than the ones in that preview, the images would be 918 x 533 thanks so much for the reply |
|
#4
|
|||
|
|||
|
Re: updating old actionscript for flash8 and dot syntax
Mmm...sorry I was having fun playing ping pong with the super model pictures. ;-)
Let me drumb up some tutorials for you.
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
|
#5
|
|||
|
|||
|
Re: updating old actionscript for flash8 and dot syntax
thanks!
as a reward for helping me out i'll send you the hi-res files. haha |
|
#6
|
|||
|
|||
|
Re: updating old actionscript for flash8 and dot syntax
This would be the type of code you want....it controls the movement of the MC on the _x axis. The movie clip can/could be as large as you like....assuming your referenced movie clip is named MC and a slider named btn1.
Last Blog Entry: Yay!? (Oct 8th, 2007)
Last edited by Sgaspar11; Aug 3rd, 2007 at 03:11. |
|
#7
|
|||
|
|||
|
Re: updating old actionscript for flash8 and dot syntax
so i would just put that on the MC itself?
|
|
#8
|
|||
|
|||
|
Re: updating old actionscript for flash8 and dot syntax
You can actually put this code on its own actions layer above the movieclip.
You just create the objects and give them an instance name....MC, btn1 on the button, etc. This is by no means the finished product, but merely a starting point of what the dot structure might look like. If you have questions on what any part of that is doing let me know. Happy developing, Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
|
#9
|
|||
|
|||
|
Re: updating old actionscript for flash8 and dot syntax
scott, what if i want to create a sliding bar like the one in my file i showed u?
|
|
#10
|
|||
|
|||
|
Re: updating old actionscript for flash8 and dot syntax
Here are a couple of tutorials on creating scroll bars...you then just link it up by referecing the MC you want it to affect.
http://www.flashperfection.com/tutor...ash-75581.html Those should get you on your way. Cheers, Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)
Last edited by Sgaspar11; Aug 3rd, 2007 at 15:46. |
![]() |
| Tags |
| flash, old code |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with syntax | tox0tes | PHP Forum | 3 | Sep 3rd, 2007 03:00 |
| Valid php syntax | nate2099 | PHP Forum | 2 | Jul 18th, 2007 04:23 |
| Flash8 - Media Player | Vorbis | Flash & Multimedia Forum | 3 | Feb 21st, 2007 17:27 |
| Video trouble Flash8 | Ipaste | Flash & Multimedia Forum | 2 | Dec 22nd, 2005 14:52 |
| Video in Flash8 | Ipaste | Flash & Multimedia Forum | 1 | Dec 2nd, 2005 00:25 |