Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Flash




Ho Wot Show Code As Sort Of Graphic In The Thread Post



Hi,Please forgive me if this is a stupid question.I have just posted a thread on this forum relating to a piece of action script. In the post I wanted to show the script that I was working on, so just copied and pasted it straight from the Actions window in Flash. Having seen other posts it looks like they are displaying their script as what look more like graphic elements than just pasted text.HOW do I ahceive this???Please Help me!Thanksmrdoodle




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

NOONES, Can't Post In Your Thread?
Since I couldn't post in your thread, I started this new one...

Use "%26" without the double quotes instead of the & in the text file...

http://www.macromedia.com/support/fl...l_encoding.htm

NOONES, Can't Post In Your Thread?
Again, and this is not the first time it's happened with one of your threads... Simply can't reply in your thread...

Check this...

http://www.actionscripthero.com/adve...p?topic_id=590

Kamran_pro... New Post In Your Thread Impossible
Are you serious?

Where the hell are you trying to display html tags (as such) in this?

And did you know Flash only supports 11 or so html1.0 tags anyways?

http://www.macromedia.com/support/fl...s/htmltext.htm

Before You Post An Error Number Thread;
Go into your fla settings, check the box called "allow debugging".

Re-compile.

This time around you'll get the actual row number of the faulty code. Much easier for you to troubleshoot, not to mention the people trying to help here.

Oh, uncheck it before you publish anything online since it has a few security related issues.

How Is This Done? Will Post Hiring Thread If Complex
Hi,

The Life (Green), Auto (Blue), and Home (Orange) Insurance boxes are really impressive when moused over. Their colors fade and lines come from the top then crook to the bottom and the object is then traced.

http://www.templatemonster.com/flash...tes/11154.html

I really like that and would love to have similar boxes for Male Model, Female Model, and Photographers on the entrance page to http://www.modsheet.com

Can anyone tell me how this effect was achieved and if I can easily do it in Flash 5?

Thanks!

A Sort Of Graphic Time Display
I was wondering if, for whatever you want, anyone could write an example of how exactly you would write something where like there's an image in the forefront, and depending on the user's local time, etc, it shows what it would (ostensibly) look like outside, all along the image (logo) in the forefront being affected by lighting, etc. I got the idea from this site: http://www.insidesun.com. The only difference I was wanting is that it would depend, like I said, on the user's local time. For a backdrop, it'd have something like an urban city.

Slide Show - Sort Of
I am working on a website for my art and I want to have it to where you can click on an arrow and it goes to the next work of art and another each time you click the arrow. How do i go about doing that.

Show Me Array.sort(compareFunction)
Maybe i'm not quite understanding this built in function but how does using the compareFunction option in the array.sort() command work???

I just want to increase my knowledge of what is there. (and hopefully not resort to building my own 'working' sorts)

Help Finding XML Gallery Code/tut/thread?
Hi,

I have been searching the forum for code/tut/explaination of creating an XML photo gallery/slideshow.

I have found a couple of examples in the source forum and I know their is a couple of Kirupa tutorials but I need to find an example that has dynamic thumbnails included in the nav?

Can anyone point me in the right direction?

Would it be easy to adapt this tutorial to include thumbnails? Also the main image needs to dynamically resize if possible.

Any help would be greatly appreciated.

Thanks

How To Post A Thread "filmstrip"
An amusing little link showing the proper technique for first time forum posters.

-PiXELWiT
http://www.pixelwit.com

Why Don't My # Of Post Show Up
I've asked this question before. Sorry but I forgot where I posted it. Anyway, can someone help me out. When I post it does not show how many posts I have had. As we all know this is vital info. LOL.
Thanks.

Show/hide Graphic
hi!
can someone show me the script to show / hide a graphic?
thanx in advance!

Show Graphic After Video Is Finished
I would like to know how to have a graphic display after a video is done so that you don't just have a black background.

ActionScript 2 Need To Show Graphic When Doors Open
I had this working at one time but having a problem with adding a graphic display when the door starts to open. A button initiates the door to open, here is the script. the second part is where it fails, anyone help please. Can send fla if needed

on (release) {
tellTarget ("/doors") {
play();
}
}
// function to show graphic when door opens

on (release) {
tellTarget ("/girlsroommovie") {
play();
}
}

My Webboard Allow User Post Images And Flash. How To Show Actual Width And Height Of
My webboard allow user post images and flash. How to show actual width and height of flash in the page?

When user post an image the code ...

<img src="image.gif">

auto show image width and height.

My problem is if the file posted is flash not image how to make the swf show actual width and height


<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" VIEWASTEXT>
<PARAM NAME="Movie" VALUE="XXX.swf">
<PARAM NAME="Src" VALUE="XXX.swf">
<PARAM NAME="WMode" VALUE="Window">
<PARAM NAME="Quality" VALUE="High">
<embed src="XXX.swf" quality="high" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>


Sorry for bad English

Thank You.

My Post Clip Doesn't Grab Latest Post Until Refresh Or Next Post
ok, i have a movie that has a posting feature

problem is, when i submit a post, SOMETIMES the clip that handles the posting reads in the text before it has been written to the text file, resulting in the post not being shown when the text is reloaded. it will show if the browser is refreshed, or a new post is submitted afterwards

basically, i'm just loading a text file at the start of the clip and if a post is submitted, i go back and load the text file again

hope that makes sense....any ideas?

Here's The Code - 3rd Post W/ No Help
for my new site i am trying to use the popular resizing movie clip thing that every seems to be doing these days. similar to http://www.evb.com and http://www.otradesign.com.

my problem is that i want to attach another movie clip for navigation to my resizing one, but i do not want it to resize or change shape. I just want it to follow along the resizing MC exactly how otradesign's navigation functions.

here is the script that i am using:

[[[this is attached to the MC to be resized]]]

onClipEvent(load){
k=.50;
damp=.20;
_x=400;
_y=150;
newFrameWidth=400;
newFrameHeight=450;
}
onClipEvent(enterFrame){
ax=(newFrameWidth -_width)*k;
ay=(newFrameHeight -_height)*k;
vx+=ax;
vy+=ay;
vx*=damp;
vy*=damp;
_width+=vx;
_height+=vy;
}

[[[this is the code for the navigation buttons]]]

on (release){
_root.stage.newFrameWidth = 100;
_root.stage.newFrameHeight = 100;
}

when i insert another container mc into the stage, it doesn't move with the resizing one and when i put the container into the resizing MC, it resizes too.

maybe i am using the wrong script, i got it from the elasticity tutorials at bit-101.

help please?

Alpha Out A Graphic With Code
i cant figure out the looping syntax for alphaing out a movie clip or graphic in flash 5

do you use the while?

do you name the movies or can you just put the code in the mainmovie timeline frame?

do you need a goto to go back to the alpha?

do you have to set the alpha value of the object in a variable?

eeerk.

i know that in flash five it's passay to use the set property command of flash4...so i am just trying to figure out the shortest syntax for this in flash 5.

thanks.

errk

slimpixi

Flipping A Graphic In A MC Through Code?
Hi guys and girls,

Wondering. I have a MC that is basically a rectangle with a arrow pointing right on it. The arrow is a graphic in my library called ARROW. When I click on the mc it closes a panel on my screen (by making it invisible). I was wondering if during my click, I could flip the Arrow in the MC horizontally so it points left. then with the next click it flips it horizontally again, back to right. and so on.


Thanks
MCM

A Graphic Artist In Need Of Code
Hello all, I am a photographer/graphic artist and I am createing a website useing flash.
I have created a flash animation that contains everything I want to happen in the page. I now want to write code that will allow me to click the buttons and have the animation go to a certain frame and play then pause on a certain frame. when the next button is pressed i want the current animation continue for the last 30 frames the go to the first frame of the section for that button. total of 3 buttons plus home.

every time i find something that sounds helpful it just confuses me more... my brain just doesnt work with code!
Help... please

How Do You Get You Code To Appear Formated When You Post It?
You can tell I'm new here. Some guys posted some code here to help me out the other day. How do they get the code to stay formated and blue?

Code To Post On Websites?
Can somone please tell me what do i use to post my .swf on websites?? I tried to use the <img src="" tag but that didn't work for me. Please can somone help out?

Sorry I Forgot To Post The Code
stop();

//Choose Activation
function onActivationClick(evt:MouseEvent):void {
gotoAndStop("info");
}
act_btn.addEventListener(MouseEvent.CLICK, onActivationClick);


//Choose Overview
function onOverviewClick(evt:MouseEvent):void {
gotoAndPlay("start");
}
ovr_btn.addEventListener(MouseEvent.CLICK, onOverviewClick);

Gallery + Sort By List + Sort By Thumbs : 3 XML Files
Hi all!
ABOUT IMAGE GALLERY:
I need help with page "Thumbs" (as first frame), page "List" (as second frame) and Image gallery (as third and base). So, every frame have one own XML file...

When you choose some thumb or list line, you must came to this image in the gallery. Easy, sure.. but i don't know what Function exactly i need to use.
It's one flash move, hence it doesn't work with getURL or loadMovie...

Some exemple with 3 separate pages here: yuri.fr

p.s. i'm ready to send .fla and xml files

Thanx!!!

Gallery + Sort By List + Sort By Thumbs : 3 XML Files
Hi all!
ABOUT IMAGE GALLERY:
I need help with page "Thumbs" (as first frame), page "List" (as second frame) and Image gallery (as third and base). So, every frame have one own XML file...

When you choose some thumb or list line, you must came to this image in the gallery. Easy, sure.. but i don't know what Function exactly i need to use.
It's one flash move, hence it doesn't work with getURL or loadMovie...

Some exemple with 3 separate pages here: yuri.fr

p.s. i'm ready to send .fla and xml files

Thanx!!!

Code To Switch A Button To Another Graphic
Hopefully I can explain what I'm trying to do here...

I have a game where a player can click on 5 different buttons on a gameboard. When clicked, the button will play a movieclip using a telltarget command. After playing the clip, the movie is unloaded and returned to a specific label on the main timeline.

My problem is that I only want each button to be clickable once. After someone clicks on the button, and the movie clip plays, I want the button to be replaced with a "do not enter" type of graphic.

Any advice on which type of variable I should use for this? My buttons can be placed inside movieclips if I need to add instance names.

Many thanks to anyone who can help me out!

Graphic Artist Needing Code Help
Hello all, I am a photographer/graphic artist and I am createing a website useing flash.
I have created a flash animation that contains everything I want to happen in the page.
I now want to write code that will allow me to click the buttons and have the animation go to a certain frame and play then pause on a certain frame. when the next button is pressed i want the current animation continue for the last 30 frames then go to the first frame of the section for that button. total of 3 buttons plus home.

every time i find something that sounds helpful it just confuses me more... my brain just doesnt work with code!

the key here is that the web page you will see needs to complete for 30 frames before the webpage you want to see can start
Help...

Make The Code In The Post Pretty
How do I make the code look all pretty in the post, with ActionScript: and a line in front of it?

How To Post Code Properly In This Forum?
how do you post code properly in this forum.. like in text blocks that actually looks like the code from actionscript instead of lining the text to the left..

thanks

Bubble Sort And Insertion Sort Algorithms
Array.prototype.insertionSort = function(){

var i, j, v;
var targetArray = this;
var targetArrayLength = this.length;

for(i=1;i<targetArrayLength;i++) {
v = targetArray[i];
j = i;
while ( targetArray[j-1] > v ) {
targetArray[j] = targetArray[j-1];
j = j-1;
if ( j < 0 )
break;
targetArray[j] = v;
}
}
}

Array.prototype.bubbleSort = function(){
var temp;
var i;

for(i=0;i<this.length;i++){
for(j=0;j<(this.length-1);j++){
if(this[j] > this[j+1]){
temp = this[j];
this[j] = this[j+1];
this[j+1] = temp;
}
}

}
}

Trouble In Load Txt After Wroten By Asp(and I Post My Code)
hey,someone help
i write some asp code:writeline("c="&myvariable),then the text wrote
c=variable,but it added a ENTER end of it,so,when i use loadvariable(mytext,0) in my flash to load the text,it did not work,
oh,how can i do with the unwanted ENTER,let flash load my text?
and i changed the code:writeline("c="&myvariable) to writeline("c="&replace(application("countnum"),vbc rlf,"")) ,but i am failing in it,it always added a ENTER at the end,why?

this is my txt text:
c=28

this is my homepage code:
<HTML>
<HEAD>
<TITLE>counter3</TITLE>
<%
if isempty(session("conn")) then
application.lock
set counterfile=server.createobject("scripting.filesys temobject")
set temp=counterfile.opentextfile(server.mappath("coun t.txt"),1,true,false)
application("countnum")=temp.readline
application("countnum")=mid(application("countnum" ),3)
application("countnum")=application("countnum")+1
temp.close
%>
</HEAD>
<BODY bgcolor="">
visiters£º<%=application("countnum")%>
<%
set temp=counterfile.createtextfile(server.mappath("co unt.txt"),true,false)
temp.writeline("c="&replace(application("countnum" ),vbcrlf,""))
temp.close
application.unlock
else
response.write "visiters£º"&application("countnum")
end if
session("conn")=true
%>
<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
WIDTH=550 HEIGHT=400 align="top">
<PARAM NAME=movie VALUE="counter3.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=>
<EMBED src="counter3.swf>" quality=high bgcolor= WIDTH=550 HEIGHT=400 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" align="top" width="550"></EMBED>
</OBJECT>
</BODY>

</HTML>

this is my flash code:
loadVariablesNum ("count.txt", 0);
num = c;
j = num.length;
s = Number(num.charAt(j-2));
g = Number(num.charAt(j-1));
with (siwei) {
gotoAndStop(s+1);
}
with (gewei) {
gotoAndStop(g+1);
}

Code To Disable Rollover Actions On Layers Below A Graphic?
Hi there,

I have a file in CS3 with a scrolling background (a movieclip), it scrolls across the entire stage and has 4 rollover effects applied to it at different points. On one side of the stage is a solid logo graphic which sits on a higher layer. As the background passes underneath it, it's rollover effect is still active. Can anyone provide me with code that could disable the rollover effects only within the logo graphic area?

I have attached the file as it stands so far.

Thank you,

Darrylhttp://www.mediafire.com/?7mg42bu20t4

You Know Those Programs That Show You All The Code In The Swf..?
You know those programs that show you all the code in the swf..?

Is there a way NOT to show the code in the swf file?

So it can't be reversed engineered, security reasons, etc.

Need To Show My Actionscript Code
Hello...

I need to output my actionscript code in a dynamic text box, just like it was the output window!

Any ideas?

Thanx in advance for the help

M.

Movies Won't Show Up, But Everything Code-wise Is Right
I've got a code that works just fine for loading external jpgs into movies in a scrollpane when used like this:


Code:
_root.scrollpane_sp.contentPath = "movieclipbox_mc" //Movieclipbox_mc is the linkage id of an empty movieclip in the library.

//Set up the MovieClipLoader listener.
var myLoader:MovieClipLoader= new MovieClipLoader();
var myListener:Object= new Object();
myListener.onLoadInit = function(mc){
_root.scrollpane_sp.invalidate();
trace("Scrollpane redrawn.");
}
myLoader.addListener(myListener);

//Load jpgs into newly created movies in movieclipbox_mc (instance name of spContentHolder) with MovieClipLoader.
myLoader.loadClip("file:////lee6/ltjones%24/Achievements/1%20Web%20Updates/Testing/FrontPageImages%20ColorChange/lezimages/fairy.jpg", scrollpane_sp.spContentHolder.createEmptyMovieClip("fairymovie_mc", scrollpane_sp.spContentHolder.getNextHighestDepth()));
myLoader.loadClip("file:////lee6/ltjones%24/Achievements/1%20Web%20Updates/Testing/FrontPageImages%20ColorChange/lezimages/stainedf.jpg", scrollpane_sp.spContentHolder.createEmptyMovieClip("stainedfmovie_mc", scrollpane_sp.spContentHolder.getNextHighestDepth()));
scrollpane_sp.spContentHolder["stainedfmovie_mc"]._x = 250;
myLoader.loadClip("file:////lee6/ltjones%24/Achievements/1%20Web%20Updates/Testing/FrontPageImages%20ColorChange/lezimages/stainedf.jpg", scrollpane_sp.spContentHolder.createEmptyMovieClip("stainedfmovie_mc2", scrollpane_sp.spContentHolder.getNextHighestDepth()));
scrollpane_sp.spContentHolder.stainedfmovie_mc2._y = 300;


But when I modify this code to make it into a formula that grabs a list of images off an .asp page and loads each one into a movie in the scrollpane, the movies won't show up!, even though the scrollpane resizes itself as if they are there. They aren't selectable either, and they should be with this code. Anyone see some common mistake I'm making here? (Hopefully!)

Code:
cacheKill = new Data().getTime();
trace(cacheKill);
myVars = new LoadVars();
myVars.load("http://development.MYSITE.com/testing/homepageimages-testing/new-images-list.asp?"+cacheKill);
myVars.onLoad = function(){
trace(myVars.images_list);
image_array = myVars.images_list.split(",");
_root.image_array_length = image_array.length - 1;
trace (image_array.length);
loadPics();
}

stop();

_root.scrollpane_sp.contentPath = "movieclipbox_mc"

//Set up the MovieClipLoader listener.
var myLoader:MovieClipLoader= new MovieClipLoader();
var myListener:Object= new Object();
myListener.onLoadInit = function(mc){
_root.scrollpane_sp.invalidate();
trace("SP redrawn for image" + i);
}
myLoader.addListener(myListener);

//Load jpgs into newly created movies in movieclipbox_mc (instance name of spContentHolder) with MovieClipLoader.
function loadPics(){
for (i=0; i<= _root.image_array_length - 1 ; i++){
myLoader.loadClip("http://development.MYSITE.com/testing/homepageimages-testing/images/new-images/" + image_array[i]+"?cb=11", this.scrollpane_sp.spContentHolder.createEmptyMovieClip("image" + i, this.scrollpane_sp.spContentHolder.getNextHighestDepth()));
//Image positioning.
myY = Math.floor(i/5);
myX = Math.floor(i%5);
trace("image"+i+" myY="+myY+" myX="+myX);
this.scrollpane_sp.spContentHolder["image"+i]._y = 344+46*myY;
this.scrollpane_sp.spContentHolder["image"+i]._x = 32+90*myX;
//Image dimesions.
this.scrollpane_sp.spContentHolder["image"+i]._yscale = 20;
this.scrollpane_sp.spContentHolder["image"+i]._xscale = 20;
}
}

//Default code.
myListener.onLoadComplete = function(targetMC){
targetMC.onPress = function() {
photoName = targetMC._name;
trace("photoname="+photoName);
photoName = photoName.slice(5);
cont.autoLoad = false;
cont.contentPath = "http://development.MYSITE.com/testing/homepageimages-testing/images/new-images/" + image_array[photoName];
pBar.source = loader;
cont.load();
this.photoname_txt.refresh()
photoname_txt.text = targetMC._name+".jpg";
}
}

Show/Hide Layers In The Code
Hello
I guess this post might have been posted earlier but difficult to find here. Has anyone implemented showing/hiding layers in actionscript.

Can I have the code to show/hide layer programmatically??

Random Blink Code - Can Someone Show Me How To Use It?
This code comes from Claudio old post to generate random blink


Code:
tMin = 5;
tMax = 10;
function randomblips() {
randommc = Math.floor(Math.random()*5)+1;
_root["mc"+randommc].gotoAndPlay(2);
clearInterval(moveInt);
t = Math.round((Math.random()*(tMax-tMin))+tMin)*1000;
moveInt = setInterval(randomblips, t);
}
moveInt = setInterval(randomblips, 1000)
and this is the link : http://www.kirupa.com/forum/showthre...ighlight=blink

Can someone show me how to use this code?

Thank you

FMX...Code For Button To Show Video
Hi everyone,

Im really struggling with this one so if any of you knows this please help. Im looking for a button code so when a user clicks on it a specific video which is included in the library will show up in the same screen. If anyone knows which code i should attach to this button to pop up the video please let me know...

thanx a lot

Random Blink Code - Can Someone Show Me How To Use It?
This code comes from Claudio old post to generate random blink


Code:
tMin = 5;
tMax = 10;
function randomblips() {
randommc = Math.floor(Math.random()*5)+1;
_root["mc"+randommc].gotoAndPlay(2);
clearInterval(moveInt);
t = Math.round((Math.random()*(tMax-tMin))+tMin)*1000;
moveInt = setInterval(randomblips, t);
}
moveInt = setInterval(randomblips, 1000)
and this is the link : http://www.kirupa.com/forum/showthre...ighlight=blink

Can someone show me how to use this code?

Thank you

FMX...Code For Button To Show Video
Hi everyone,

Im really struggling with this one so if any of you knows this please help. Im looking for a button code so when a user clicks on it a specific video which is included in the library will show up in the same screen. If anyone knows which code i should attach to this button to pop up the video please let me know...

thanx a lot

Code For Autoplay Slide Show NOT WORKING, PLEASE HELP
Hi There,

I've been working on a presentation, and in this presentation is an image slide show. I set this up to the best of my knowledge....Here is how I have it set up:

I have an MC called slide_show which resides on a frame label on the root-or main timeline....in this MC, I have the first 24 frames with an image on each frame(24 images in all). I am using the nextFrame() and prevFrame() scripts on buttons to go to the next or previous image..for manual viewing. I would also like to have the images auto play at about 3 second intervals. Right now, I have this set up so that when the auto play button is pressed, it goes to a frame labeled "auto" with the images on 24 frames (which actually starts at frame 35, after the manual images).

I would like to use the following code:

changeID = setInterval(function () {
// stop the setInterval from running again
clearInterval(changeID);
// start up 'changeFunc' which changes picture
changeFunc();
},3000);

I put this code on frame 35 or frame Label "auto" and have the autoplay button code as:

on(release) {
gotoAndPlay("auto");
}


well, this doesn't work! What am I doing wrong? And how can I get this to auto play with my current setup? I don't have much time left here! I really appreciate your help on this matter. If my setup is wrong, or if I am missing some code somewhere, please let me know. How do I do this thing right?

Thanks for the help! =)

Valerie

[F8] How To Use Code (not Keyframes) To Show An Image For X Seconds?
Hi,

I have searched through Flash's help files (deplorable!) the FK site and the web via Google to try and find an answer to what I think is a very simple question, but no luck so far!

What I want to do in my flash is show a sequence of photos like an automatic slideshow. (no back and forth buttons, just automatically playing.)

I want each photo to show for a few seconds before displaying the next. I already know how to do this by making lots and lots of frames of the first image that "play" and then switch to the second image and repeat that image for tons and tons of frames, and so on, but this can't be the most efficient way to do it!?

Is there a way to assign code to each image that tells it to show for a few seconds before showing the next image?

I'd like all the images to be in single keyframes next to each other on the same line.

I would greatly appreciate any help!

Thanks!

SUBMENUS (our History) WILL NOT SHOW What's Wrong With My Code?
THIS CODE (ABOUT_US.FLA) RUNS THROUGH TO A MASTER.FLA (WHICH IS BELOW)


/-----------<load CSS>----------- \

var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
cssStyles.load("styles/styles.css");
cssStyles.onLoad = function(success) {
if (success) {
loadedInfo.styleSheet = cssStyles;
_level0.myLV.load("vars/ourHistory2.txt");
} else {
loadedInfo.text = "There has been error loading the requested information. Please contact the Webmaster and report your error.";
}
}

//-----------</load CSS>----------- \

var scrollDirection:String;

//-----------<scroll buttons>----------- \
this.scrollDown.onPress = function() {
scrollDirection = "down";
scrollText();
}
this.scrollUp.onPress = function() {
scrollDirection = "up";
scrollText();
}
function scrollText() {
_root.onEnterFrame = function() {
if (scrollDirection == "up") {
loadedInfo.scroll -= 1;
} else if (scrollDirection == "down") {
loadedInfo.scroll += 1;
}
}
}
//-----------</scroll buttons>----------- \
// created Textformat object that defines the states of the sub-menu options

//----------------------------<SubMenu>------------------------------//

var optionDisable:TextFormat = new TextFormat("Bitstream Vera Sans", 12, null,true, true);

var optionEnable:TextFormat = new TextFormat("Bitstream Vera Sans", 11, null, false, true);

//disable the submenu option that corresponds to the current loaded section for example Our History is what you first see on the page so that menu should be disabled

this.ourHistoryMC.myText.setTextFormat(optionDisab le);
//this.ourStaffMC.myText.setTextFormat(optionEnable) ;

//-----------------------</SubMenu>------------------------------//

MASTER.FLA CODE:

stop ();
//--------------------<movieclip loader>-------------------------\
var myMCL:MovieClipLoader= new MovieClipLoader();
var myListener:Object = new Object ();
myMCL.addListener(myListener);

//-------------------</end of movieclip loader>-------------------------\


myMCL.loadClip("trigger.swf", 5);
// this step will load the shared library once it is done loading
//it will then go to kf 10 and load the splash swf file
//--------------------<LOAD VARS>-------------------------\
var myLV:LoadVars = new LoadVars();
myLV.onLoad = function(success) {
//What happens if function(success) is true, tell_level5(where ALL content loads into)the value of variable
if (success) {
_level5.loadedInfo.htmlText = myLV.info;
} else {
_level5.loadedInfo.text = "There has been error loading the requested information. Please contact the Webmaster and report your error.";
}
}
//--------------------</LOAD VARS>-------------------------\

//----------------KEYFRAME 10 CODE FOR Master.fla----------\
stop();
myMCL.loadClip("about_usJAN05.swf", 5);
///myMCL.loadClip("splash.swf", 5);
//myMCL.loadClip("frames.swf", 5);

Slide Show With Cue Point, Totally By Code
Hi everybody, I've got a question for you
I have to create a slide show flash file, with a video that shows a lesson and some jpg files (showing subtitles) that appears at some determinated cuepoints, I want to create that application all by code, without using flash grafic interface

In your opinion, How can I do?
I think I have to use 2 objects: MediaDisplay, MediaController and link both together by an association by code, then use the event like Behaviors panel do, but by code... All made in a slide show file...
The only real problem with that, is making and adding an instace of these objects to stage, I mean... I've done it, but I hear the audio and I don't see the video...

I'm right using these objects or I must change my ideas?

How To Show Action Script Code In A Text Box
Hi , i need help in displaying my action script code at run time, I need to dispaly my code in a text box when the program runs.
I guess something to start would be output_txt.text. then i need to call my own action script. but not sure how...

Wordpress Plugin To Show Flash Code
Anyone know of a EASY to use plugin for wordpress that will show flash code the way it looks inside the flash IDE? I really need it for my blog.

thanks!
L

Want To Show Image In Graphic Image
I have a graphic image in scene 1, frame 1.
I have animation inside this graphic image.
i.e when I double click on the image there is animation.

When I publish the file only the anumation on scene 1 shows

How can i get Flash to show the animation that is inside the graphic image?

Code To Show And Hide Different Elements From Differents Libraries
Hey guys,

I'm having big problem developing a game in which people can dress-up a character. I already managed to do the drag drop code.

As I want to create many clothes in different "libraries", like library t-shirt, shorts, shoes and etc.

The problem is, for instance, when I see all the t-shirt and I drag one of them to my character. Then I click on the shoes and all the t-shirts must disappear, but not the t-shirt that I dragged, in order for the shoes show up.

That`s my main problem, does any one know how to do it?

Hope you guys can help me! Thanks!!!

Flash 8 Caption Code Needed For Slide Show
I have a Flash Slide Show done in Flash 8. There's no xml files attach with this file. I only use Action Scripting along with this project. I'm trying to have a line of text showing as a caption for each images. Do you know if I need to create and xml file along with this document? Any help would be greatly appreciated.

Thanks,

Attach Code

_global.numOfImage = 29;
//
url = "";
//
temp = 7;
//
//
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//
check.swapDepths(20000);
for (var i = 1; i<=numOfImage; i++) {
mc = this.attachMovie("btn", i, i+100);
mc._x = ((i-1)%temp)*75+30;
//
mc._y = Math.floor((i-1)/temp)*46+450;
//
mc.oldx = mc._x;
mc.oldy = mc._y;
mc.point.loadMovie(url+"image/trail/image"+i+".jpg");
mc.onRollOver = function() {
this.fade.play();
check.target = this._name;
check.onEnterFrame = function() {
this._x += (this._parent[this.target]._x-this._x)/4;
this._y += (this._parent[this.target]._y-this._y)/4;
};
};
mc.onRelease = function() {
this._parent.attachMovie("loading", "loading", 10000);
screen.original.loadMovie(url+"image/original/image"+this._name+".jpg");
this._parent.onEnterFrame = function() {
if (screen.original.getBytesTotal() == screen.original.getBytesLoaded()) {
this.loading.removeMovieClip();
screen.gotoAndPlay(2);
delete this.onEnterFrame;
}
};
};
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
init();
function init() {
this[1].pressed = 0;
this.stopDrag();
this.attachMovie("loading", "loading", 10000);
screen.original.loadMovie(url+"image/original/image1.jpg");
this.onEnterFrame = function() {
if (screen.original.getBytesTotal() == screen.original.getBytesLoaded()) {
this.loading.removeMovieClip();
screen.gotoAndPlay(2);
delete this.onEnterFrame;
}
};
check.target =1
check.onEnterFrame = function() {
this._x += (this._parent[this.target]._x-this._x)/4;
this._y += (this._parent[this.target]._y-this._y)/4;
};
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Copyright © 2005-08 www.BigResource.com, All rights reserved