Author Topic: Flash and Me  (Read 5077 times)

Spriggan

  • Administrator
  • Level 78
  • *
  • Posts: 10582
  • Fell Points: 31
  • Yes, I am this awesome
    • View Profile
    • Legacies Lost
Re: Flash and Me
« Reply #30 on: March 24, 2004, 01:32:06 PM »
umm, just right-click on the text feild and select "Scrollable".  That will add scroll bars.

To use buttons make a button and have 2 copys of it (or two different ones).  Name your text feild anything you want (you assign instance names in the top left hand corner).  Then on the buttons have
Code: [Select]
on (press){//or release, rollover or what ever you want
_root.myTextFeild.scroll++ //++ just automatical increases by one.  You could do +1 for the same or +2, +3.
}


on the other
Code: [Select]
on (press){
_root.myTextFeild.scroll--//this is like ++ except it subtracts one.  You could use -1 if you wanted.
}
« Last Edit: March 24, 2004, 01:32:53 PM by Spriggan »
Screw it, I'm buying crayons and paper. I can imagineer my own adventures! Wheeee!

Chuck Norris is the reason Waldo is hiding.


Gemm: Rock & Roll Star; Born to Rock

  • Level 57
  • *
  • Posts: 4591
  • Fell Points: 0
  • I Am Your Worst Nightmare's Dream
    • View Profile
    • Perfect
Re: Flash and Me
« Reply #31 on: April 20, 2004, 01:18:44 PM »
Coolest line in a tutorial:

"The machine can produce different results depending on what you put into it. For example, if you put bananas in a blender, you get mashed bananas, not mashed peaches."
“NOTHING IS TRUE. EVERYTHING IS PERMITTED.”
                William S. Burroughs

“Who needs girls when you’ve got comics?”
                Grant Morrison’s Flex Mentallo

Gemm: Rock & Roll Star; Born to Rock

  • Level 57
  • *
  • Posts: 4591
  • Fell Points: 0
  • I Am Your Worst Nightmare's Dream
    • View Profile
    • Perfect
Re: Flash and Me
« Reply #32 on: October 25, 2004, 01:25:24 AM »
Ok Sprig, here's a question for you on Flash.

build a global function that I can call from any of the objects in the timeline...
How do I do that best? Preferably one that I can use from ANY timeline
“NOTHING IS TRUE. EVERYTHING IS PERMITTED.”
                William S. Burroughs

“Who needs girls when you’ve got comics?”
                Grant Morrison’s Flex Mentallo

Spriggan

  • Administrator
  • Level 78
  • *
  • Posts: 10582
  • Fell Points: 31
  • Yes, I am this awesome
    • View Profile
    • Legacies Lost
Re: Flash and Me
« Reply #33 on: October 25, 2004, 03:06:39 AM »
well define the function in the root timeline (or path), that way you can easly call it from any path.  So if you have
Code: [Select]

myFunction(){
/all my code here
}


then when you wanted to call it you'd use
Code: [Select]

_root.myFunction();


for calling other objects you'll need to use pathing too, you could easy call a function defined anywhere at about anytime, but it's easier to do it when they're in the root path.  If you haven't allready read something like this I recomend reading this pathing tutorial.

http://www.actionscript.org/tutorials/beginner/paths/index.shtml
« Last Edit: October 25, 2004, 03:07:08 AM by Spriggan »
Screw it, I'm buying crayons and paper. I can imagineer my own adventures! Wheeee!

Chuck Norris is the reason Waldo is hiding.