Description
new
swfaction
( string script)
אזהרה
|
הפונקציה
הזו
היא
ניסיונית
.
כלומר
,
התנהגות
הפונקציה,שם
הפונקציה
ובאופן
כללי
כל
מה
שמתועד
כאן
עשוי
להשתנות
בהפצה
עתידית
של
PHP
ללא
התרעה
.
ראה
הוזהרת,השימוש
בפונקציה
זו
על
אחריותך
בלבד
.
|
- time()
-
- random(seed)
-
- length(expr)
-
- int(number)
-
- concat(expr, expr)
-
- ord(expr)
-
- chr(num)
-
- substr(string, location, length)
-
- duplicateClip(clip, name, depth)
-
- removeClip(expr)
-
- trace(expr)
-
- startDrag(target, lock, [left, top, right, bottom])
-
- stopDrag()
-
- callFrame(expr)
-
- getURL(url, target, [method])
-
- loadMovie(url, target)
-
- nextFrame()
-
- prevFrame()
-
- play()
-
- stop()
-
- toggleQuality()
-
- stopSounds()
-
- gotoFrame(num)
-
- gotoFrame(name)
-
- setTarget(expr)
-
And there's one weird extra thing. The expression
frameLoaded(num) can be used in if statements and while loops to
check if the given frame number has been loaded yet. Well, it's
supposed to, anyway, but I've never tested it and I seriously
doubt it actually works. You can just use /:framesLoaded instead.
So, setting a sprite's x position is as simple as
/box.x = 100;
. Why the slash in front of the box, though? That's how flash
keeps track of the sprites in the movie, just like a unix
filesystem- here it shows that box is at the top level. If the
sprite named box had another sprite named biff inside of it,
you'd set its x position with /box/biff.x = 100;. At least, I
think so; correct me if I'm wrong here.
דוגמה
1
.
swfaction(
)
example
|
דוגמה
2
.
swfaction(
)
example
|
דוגמה
3
.
swfaction(
)
example
|
דוגמה
4
.
swfaction(
)
example
|