movieclip_alpha

  • mvotre
  • Novice
  • Novice
  • mvotre
  • Posts: 21

Post 3+ Months Ago

hello dudes. im trying another thing (i hope i dont disapoint anybody when i post the link to my site :oops: )

since i dont know how many questions i will post here, i will give each one a number, ok?

1- i see the help and loved the fscommand stuff. now my movie opens in full screen. but i also wanna to test the exec command (no real use for me right now, just to learn):

i have the code below
on(release){
fscommand("exec", "C:/blender.exe")
;
}

if i test in flash, it dont give any script errors. but when i publish and open the swf, the other button wich opens in full screen works fine, but this dont do a sh*t.... why???

2- can i make the fullscreen stuff work in html?? it dont works for me.
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

fscommands are for use in the flash standalone player, and I believe the exec command only works if you export your file as a projector file (.exe) and not a .swf.

So with that said, these fscommand actions will not work in an HTML page. You will need to use a JavaScript function that opens a full screen window and then call that function from within flash by using
Code: [ Select ]
getURL("javascript:functionName()");
However, I highly recommend not using a full screen for a site, it poses quite a useability issue and I know many people, including myself who just close out full screen windows without giving them a second glance. If you do choose to go full screen, I highly recommend giving the viewer 2 options, one for full screen and the other for normal window.
  • mvotre
  • Novice
  • Novice
  • mvotre
  • Posts: 21

Post 3+ Months Ago

found it!!! after a quick search on web, i discover the painless way...

if anyone one day needs to start a program from the projector, you only will be able to test it if you put the aplication (*.exe) in a folder called fscommand in the same place where you projector is. fine 8)

see ya!!!

PS:hey lostinbeta! whats up if your lostinbeta.com site??? it dont work!!
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

It's down, been too busy to work on the new version... unfortunately.

It should be up sometime within my lifetime... hopefully.
  • mvotre
  • Novice
  • Novice
  • mvotre
  • Posts: 21

Post 3+ Months Ago

right now i got a brand new problem.....

i was kicking out some frames of my site. i make an animation that repeats every time you click a button just once, and in actionscript made the others buttons play the same stuff. fine

but now i want to kill that animation frames. its just a alpha stuff animation. how i make the movie go to another frame after _alpha reachs 0???

onClipEvent (enterFrame) {
if (_root.teste._alpha>0) {
_root.teste._alpha -= 10;
} else if (_root.teste._alpha == 0) {
gotoAndStop(2);
}
}

this way it dont works. this code its placed in the movie clip named teste
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

First, if the code is on the clip with that instance name, you can use "this".. second... technically that should work, but just in case, try using <= rather than ==
Code: [ Select ]
onClipEvent (enterFrame) {
  if (this._alpha>0) {
    this._alpha -= 10;
  } else if (this._alpha <= 0) {
    gotoAndStop(2);
  }
}
  1. onClipEvent (enterFrame) {
  2.   if (this._alpha>0) {
  3.     this._alpha -= 10;
  4.   } else if (this._alpha <= 0) {
  5.     gotoAndStop(2);
  6.   }
  7. }
  • norie
  • Novice
  • Novice
  • norie
  • Posts: 18
  • Loc: bako

Post 3+ Months Ago

Code: [ Select ]
onClipEvent (enterFrame) {
  if (this._alpha>0) {
    this._alpha -= 10;
  } else if (this._alpha <= 0) {
delete this.onEnterFrame; //clean up
    gotoAndStop(2);
  }
}
  1. onClipEvent (enterFrame) {
  2.   if (this._alpha>0) {
  3.     this._alpha -= 10;
  4.   } else if (this._alpha <= 0) {
  5. delete this.onEnterFrame; //clean up
  6.     gotoAndStop(2);
  7.   }
  8. }
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

norie wrote:
Code: [ Select ]
onClipEvent (enterFrame) {
  if (this._alpha>0) {
    this._alpha -= 10;
  } else if (this._alpha <= 0) {
delete this.onEnterFrame; //clean up
    gotoAndStop(2);
  }
}
  1. onClipEvent (enterFrame) {
  2.   if (this._alpha>0) {
  3.     this._alpha -= 10;
  4.   } else if (this._alpha <= 0) {
  5. delete this.onEnterFrame; //clean up
  6.     gotoAndStop(2);
  7.   }
  8. }



Norie: "delete this.onEnterFrame" only works for the dynamic event handler, not the static event hanlder. So in this case it isn't cleanup, it's clutter ;)
  • mvotre
  • Novice
  • Novice
  • mvotre
  • Posts: 21

Post 3+ Months Ago

thanks dudes, but it dont work if any of the methods.

i think this could be cos i got that mc in a single frame, and in that frame a action "stop". maybe im right??? how to ???
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

Try changing
Code: [ Select ]
gotoAndStop(2);
to
Code: [ Select ]
_parent.gotoAndStop(2);
The script thinks you are telling the movie to gotoAndStop(2) in the movieclip symbol. So what you needed to do was to tell it to go up a timeline (via _parent) and gotoAndStop(2) on that timeline.

Make sense? (i'm not the best at explaining)
  • mvotre
  • Novice
  • Novice
  • mvotre
  • Posts: 21

Post 3+ Months Ago

thanks dude! it works!! i never used that _parent before. now i will read the help to get the latest news :D :D
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

_parent is part of the targeting scheme of Flash... VERY VERY IMPORTANT to know when actionscripting.

Basic rundown:

_root = first timeline in the entire hierarchy.

_parent = one timeline back in the hierarchy from the current timeline.

this = current timeline.

Post Information

  • Total Posts in this topic: 12 posts
  • Users browsing this forum: No registered users and 17 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.