Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 28th, 2003, 10:36 AM
aydah aydah is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 6 aydah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Scrollbar error

Hi,
i tried to create a scrollbar in my website where a dynamic text will call an html file to it i followed the instructions but got error , "Target is not found" and dynamic text is empty !!!

please help me!

---------------------------------
Start off by starting a new movie: File»New. Then go to Modify»Movie and change the width and height to whatever your prefference might be. The one I'm making is Width: 550 Height: 400. Then create the up and down arrows as it is on the left. Then select the Up Arrow and choose Insert»Convert to Symbol.Name the up arrow, "Arrow 1" and the bottom arrow, "Arrow 2", both as behavior button.
2. Alright, next you want to Start a new layer and call it "Text". Then create a new blank keyframe in the first four frames by clicking on each frame and selecting Insert»Blank Keyframe. You also want to extend the frames of the arrow layer by right clicking on the fourth frame in the tipline and selecting Insert Frame so it looks like the figure to the left.
3. Right Click on the first frame on the "Text" layer in the timeline and select Actions. Copy and paste the following line:
loadVariablesNum ("./text.txt", 0);
where text.txt is the text or HTML file you want to call. (You must keep the ./ however). Remember your text file needs to begin with "text=".

Go back to the timeline and rightclick the second frame on the "Text" layer and select Actions. On this frame Copy-Paste the following lines:
if (text ne "") {
gotoAndStop ("end");
}

Do the same for the third frame with the following line:
gotoAndPlay ("load");

And finally have the fourth and last frame say:
stop ();



4. Alright, on the second frame in the timeline on the "Text" layer, go to the Frame box and name it "load" as it is displayed on the figure on the left. Do the same thing for the fourth frame, except name is "end".



5. Click on the fourth frame on the text layer, and choose Insert»New Symbol and name it "uptrigger" with behavior as a Movie Clip. Once inside the movie clip, make three blank keyframes on the first three frames of the layer. Go to the first frame Actions like we did earlier in Step 3, and put in the following code:
stop ();

Go to the second frame Actions and place this:
/text:scroll = Number(/text:scroll)-1;

Finally on the last third frame, place this code:
gotoAndPlay (2);



6. Go Back to the main movie by clicking on the "Scene 1" text on the top left corner. Now, Click on the fourth frame on the text layer, and choose Insert»New Symbol and name it "downtrigger" with behavior as a Movie Clip.Once inside the movie clip, make three blank keyframes on the first three frames of the layer. Go to the first frame Actions like we did earlier in Step 5, and put in the following code:
stop ();

Go to the second frame Actions and place this:
/text:scroll = Number(/text:scroll)+1;

Finally on the last third frame, place this code:
gotoAndPlay (2);



7. Alright, now go back to the main movie by clicking on the "Scene 1" on the top left and, while on the fourth frame, click on Window»Library to show the Library. You should see "Uptrigger" and "Downtrigger" in there. Click and Drag both of them onto the movie somewhere, it does not matter where. For all purposes, put the uptrigger by the up arrow, and down trigger by the down arrow. You should see a white dot whereever you placed them. Click on the "Uptrigger" white dot and go into the Instance Property and name it "uptrigger". Then click on the "Downtrigger" dot and in the Instance propert, name it "downtrigger".



8. Finally, click on the text tool, and click on where you want the top left text area to be. Then on the Text Property, set it up as it is on the left figure. After you have it set up like that, use the circle on the bottom right corner of the text area to drag it as big as you want it to be.



9. Right click on your up arrow button and copy-paste this code:
on (press) {
tellTarget ("uptrigger") {
gotoAndPlay (2);
}
}
on (release, releaseOutside) {
tellTarget ("uptrigger") {
gotoAndStop (1);
}
}

And then go to the down Arrow and place this code:
on (press) {
tellTarget ("downtrigger") {
gotoAndPlay (2);
}
}
on (release, releaseOutside) {
tellTarget ("downtrigger") {
gotoAndStop (1);
}
}
One last thing, on the Text file, remember to start it off by saying "text=" and that it is in the same folder as the flash.

---------------------------------------------------------------------

Reply With Quote
  #2  
Old November 28th, 2003, 11:45 AM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,715 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 11109 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 1 Day 11 h 50 m 46 sec
Reputation Power: 580
Facebook MySpace
Hi, I'm a bit lazy, can you attach what you've got (the .fla) and I'll take a look.

-Tann

Reply With Quote
  #3  
Old November 29th, 2003, 03:02 AM
aydah aydah is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 6 aydah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi Tann,
well how can i attach the file to the post?!!!
(it seems your not the only lazy bug here!)

Reply With Quote
  #4  
Old November 29th, 2003, 06:52 AM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,715 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 11109 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 1 Day 11 h 50 m 46 sec
Reputation Power: 580
Facebook MySpace
Hi, ok well underneath the reply window I have options: with a few options and then attach file: all you gotta do is zip it up first. Then browse to it.

-Tann
__________________
-Tann

-Vote for your favorite ActionScript editor here.

Reply With Quote
  #5  
Old November 29th, 2003, 09:41 AM
aydah aydah is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 6 aydah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hi,
i solved the problem, but when i insert a swf file to the dreamweaver the dynamic text that suppose to call a text file does not show! i wonder why?it works fine when i preview it in flash!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Scrollbar error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT