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.
FlashKit > Flash Help > Flash General Help
Posted on: 08-14-2005, 03:37 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Flash Video Player Doesn't Show Up In Programs List.
I have successfully installed Flash Video Player (the latest version) on two different computers, but I cannot find the executable to open the player. I have more than one FLV player on my computer. I should be able to right-click on the video file, select "open with..." and select Adobe Flash as the player, however, it does not show up anywhere on the programs list - why is this?
Programs Stops Working When I Put Any Code On A Button
I have an mc, and within that mc is a button. On that button I have placed the code :
on(press) {
trace(this);
}
When I try running my program, it stops working. However if I comment out just the trace line of the button, everything works perfectly fine.
Edit: It seems that if I try running any code at all in an on(...) statement it stops working. The inclusion of an on(...) statement doesn't seem to effect it, but putting anything inside it apparently does.
Programming Programs To Write Programs
I tend to automate things. Automating automation is no exception to this rule.
If I'm going to have to do it more than once or twice, I tend to jump through some hoops to make sure the machine does it for me.
I'm not just evil enough to run my Actionscript code through a C preprocessor just so I have my macros and conditional compilation.
No, I'm sick enough that I write programs to to write programs. Have done so for years. No cure for it.
Take this simple little doohicky, a 'slide show' applet. It's part of a larger web site that has a ton of screen captures from games that are cycled when the main application loads them as a preview.
It started off that I'd grab all those pictures, drop them into Flash, and make a little 'movie' out of them. That was too much damned work.
So I wrote a little piece of Flex code, and then I cut it up into pieces.
SlideShow_1.as
ActionScript Code:
/**
* Dumb slide show applet
**/
package
{
import flash.display.*;
import flash.text.*;
import flash.geom.*;
import flash.events.*;
import flash.media.*;
import flash.xml.*;
import flash.utils.*;
SlideShow_2.as
ActionScript Code:
public class SlideShow extends Sprite
{
public const msSlideInterval : int = 2000; // How long between frames
public var timer : Timer; // Slide changing timer
public var aBitmap : Array; // Array of bitmaps to display
public var iFrame : int = -1; // Frame index
public var bmCurr : Bitmap; // Current bitmap
/**
* Do 'standard' two part construction.
* When run alone, 'stage' is set in constructor.
* When run from another swf, 'stage' isn't initially set.
**/
public function SlideShow()
{
new Resource();
addEventListener( Event.ADDED_TO_STAGE, addedToStage );
aBitmap = [];
for each (var img : Class in Resource.aImageClasses )
{
aBitmap.push( new img() );
}
}
public function addedToStage( event : Event ) : void
{
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.quality = StageQuality.HIGH;
timer = new Timer(msSlideInterval);
timer.addEventListener(TimerEvent.TIMER,NextFrame);
timer.start();
NextFrame();
}
/**
* Go to next frame of slide show
**/
public function NextFrame( event : Event = null ) : void
{
//trace( "NextFrame" );
if( ++iFrame >= aBitmap.length )
iFrame = 0;
if( null != bmCurr )
removeChild(bmCurr);
bmCurr = aBitmap[iFrame];
addChild(bmCurr);
}
}
}
/*
* Local Resource embed class appended by external script code
*/
class Resource
{
SlideShow_3.as
ActionScript Code:
public static var aImageClasses : Array = [];
public function Resource()
{
SlideShow_4.as
ActionScript Code:
}
}
Then I wrote myself a little script to find all the images in a folder, sort them and insert them into the code. If you note the original, and what's missing from the pieces, this basically measures the first image, makes a [SWF()] metadata to size up the applet, then builds a list of images to import with [Embed()] metadata. It dumps the code into the output .as file, then invokes mxmlc on it.
(Note, you only need the FREE Flex SDK to build it.)
The pieces most of you won't understand are 'sed' and 'identify'.
'Identify' came from ImageMagick. A set of command-line based image manipulation tools. I could do additional things, like resize the images, turn them into one format or another, etc. All I use 'Identify' for is to find out how big the image is, and format out the 'SWF' metadata.
'Sed' (The Stream Editor) is an ancient (1977) Unix/Linux/etc. tool that's probably older than most people reading this. It performs regular expression search/replace on text. It's super handy.
makeslides.sh
Code:
#!/bin/bash
if test ! -z "$1" && test -d "$1" ; then
imgdir=$1
if test -z "$2" ; then
swfout=$1.swf
else
swfout=$2
fi
set -o errexit# Stop running the script if an error occurs
set -o nounset# Stop running the script if a variable isn't set
# Find any supported images in the folder
find "$imgdir" ( ! -regex ".*.svn.*" -a ( -iname *.png -o -iname *.jpg -o -iname *.jpeg ) ) > tmp
# echo First part of source code
# SlideShow_1-SlideShow_4 are pieces of one as file that this dumps some
# additional code/data into
cat src/SlideShow_1.as > SlideShow.as
# Sort the file list, then grab the first one, then make 'SWF' metadata
# identify is from ImageMagick - tell script about file format
# sed (Strem Editor) is an ancient unix tool
sort tmp | sed q tmp | sed "s/(.*)/"1"/" | xargs -L 1 identify -format "[SWF(width="%w", height="%h",frameRate="30", backgroundColor="0x000000")] // %d/%f" >> SlideShow.as
# echo more of the source code
cat src/SlideShow_2.as >> SlideShow.as
# Build list of Embed metadata items
sort <tmp | sed "s/(.*)$/ [Embed(source="1")] public static const image/"
| sed -n -e "/.*/ p;="
| sed -e 'N;s/
//'
| sed -e "s/$/ : Class;/" >> SlideShow.as
# echo more of the source code
cat src/SlideShow_3.as >> SlideShow.as
# Add the list of Bitmaps we embedded to a list
sed -n "=" <tmp | sed "s/(.*)/ aImageClasses.push(image1);/" >> SlideShow.as
# echo last of the source code
cat src/SlideShow_4.as >> SlideShow.as
# Now compile the
mxmlc -compiler.optimize=true SlideShow.as -o "$swfout"
# Clean up tmp file
rm tmp
else
# Parameter was invalid
echo
echo $0 srcDir [tgtSwfName]
echo
echo srcDir: Where to look for swf files
echo tgtSwfName: What to call the swf file
echo "If tgtSwfName isn't specified a swf file named after the folder is made."
echo
echo Generate a slide show swf from a folder full of image files.
echo
exit 1
fi
Here's a version for you pitiful Windoze lusers so you don't feel left out.
makeslides.bat
Code:
@echo off
set imgdir=%~f1
set swfout=%~f2
if "%imgdir%" == "" goto help
if "%swfout%" == "" set swfout=%~f1.swf
set SED=toolssed
set IDENT=toolsidentify
rem Find any supported images in the folder
dir /s /b "%imgdir%*.png" > tmp 2>nul
dir /s /b "%imgdir%*.jpg" >> tmp 2>nul
dir /s /b "%imgdir%*.jpeg" >> tmp 2>nul
rem echo First part of source code
rem SlideShow_1-SlideShow_4 are pieces of one as file that this dumps some
rem additional code/data into
type srcSlideShow_1.as > SlideShow.as
rem identify is from ImageMagick - tell script about file format
rem Sort the file list, then grab the first one, then make 'SWF' metadata
sort tmp | %SED% q tmp | %SED% "s/(.*)/"1"/" | %SED% "s/^/@%%IDENT%% -format "[SWF(width="%%%%w", height="%%%%h",frameRate="30", backgroundColor="0x000000")] // %%%%d/%%%%f" /" > tmp.bat
call tmp.bat >> SlideShow.as
rem echo more of the source code
type srcSlideShow_2.as >> SlideShow.as
rem Build list of Embed metadata items
sort <tmp | %SED% "s/\///g" | %SED% "s/(.*)$/ [Embed(source="1")] public static const image/" | %SED% -n -e "/.*/ p;=" | %SED% -e "N;s/
//" | %SED% -e "s/$/ : Class;/" >> SlideShow.as
rem echo more of the source code
type srcSlideShow_3.as >> SlideShow.as
rem Add the list of Bitmaps we embedded to a list
%SED% -n "=" <tmp | %SED% "s/(.*)/ aImageClasses.push(image1);/" >> SlideShow.as
rem echo last of the source code
type srcSlideShow_4.as >> SlideShow.as
rem Now compile the
mxmlc -compiler.optimize=true SlideShow.as -o "%swfout%"
if errorlevel 1 exit /b 2
rem Clean up tmp file
del tmp tmp.bat
goto end
:help
rem Parameter was invalid
echo.
echo %0 srcDir tgtSwfName
echo.
echo srcDir: Where to look for swf files
echo tgtSwfName: What to call the swf file
echo If tgtSwfName isn't specified a swf file named after the folder is made.
echo.
echo Generate a slide show swf from a folder full of image files.
echo.
:end
Now to make it recursively eat folders and poop out swf files, you need one more script...
allslides.sh
Code:
#!/bin/bash
set -o errexit# Stop running the script if an error occurs
set -o nounset# Stop running the script if a variable isn't set
find screenshots/* -type d ( ! -regex ".*.svn.*" )
-exec ./makeslides.sh {} ;
allslides.bat
Code:
rem first sed: Eat paths with .svn in them
dir /b /ad /s screenshots | sed -n "/.svn/!p" | sed "s/(.*)/call makeslides.bat "1"/" > atmp.bat
call atmp.bat
del atmp.bat
Now, if you've skimmed this far, you may be thinking to yourself, "Self, what the heck would I ever do with THIS?"
Well, I'll tell you. With minor modification, the script could do a LOT more than just slurp images into a slide show swf.
You could maintain all of your version-controlled art/sound/video/etc. assets in a directory tree and make this a part of a makefile (or ant, I suppose) script, and it would be able to make one Resource.as file containing all of your resources as static members of some Resource class.
So instead of screwing around in Flash to maintain your resources, embed all of the bits into your source code automagically.
At the very least you should see that when you have a lot of little pieces to manage, writing a simple script to manage them can be a real labor-saver.
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
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;
};
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
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;
};
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
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!
Thanks
mrdoodle
[F8] Exporting From Vector Programs To The Other Vector Programs
I can do the cut and past thing from illy to Flash but if I go the other way things get ugly. Like simple text that has been broken past in to illy pretty rough and sometime illedgible. I mean I thought that is why vector is the bomb over raster. Is there ways to get good clean exports to manipulate in other vector programs out of Flash
3D Programs
what 3d picture making programes do u guys use?
What Programs Do I Need?...
Hey all, I'm not that new to flash and have been working with it quite alot these past few months. What I want to do now is really get serious with and get something going. Although before I can do this I would need some help from some of you. I would like to know what programs that you guys use to make your intros, sites, forums and chats. If possible can you either give me a link to a site where I could d/l the program or post the full name and maybe the price. Thx alot for any help...
I would like some programs to make 3d objects, make them rotate and much more. Well thx again... Later
What Programs To Use...
Hey, could anyone tell what programs have been used to build this site....http://www.johnmayer.com/ i have flash 5 and photoshop...but do you think that Adobe Illustrator would be better?
Thanks Lopster
Must Have Programs
Hi everyone,
I'm trying to make my websites look more professional. I wanted to know what programs you guys use to build your sites. I mostly use Flash 5.0 (even for graphics), and I end up with these bubblegum websites and graphics. So, what do you guys use?
Thanks,
TT
Programs
Hi I Just Joind This Site A have been visiting for a long time and i was wondering if there are any programs to make flash games besides FlashMx Flash8 ect.
If You Know Plz Reply
[F8] Run Programs
I'm building a website in flash for my job and it will be saved on an internal webserver (just for the lan, example ip is: 51.51.51.51) and i would like to add a button which loads a program on any computer on the network like notepad without running the program from the server. Is there a way?
Example:
Website address: http://51.51.51.51/index.html
Program to be run: C:WINDOWSSYSTEM32NOTEPAD.EXE
[F8] Run Programs With AS
Hi there,
I don't know if what I'm trying to do is possible with AS, so if not just tell me (then I can stop searching and start learning, cause this is really starting to annoy me)!
I've been told by friends that my desktop is over populated by icons. And since I've been working with them fancy carousel menu's I thought "hey, why not try to run my programs through an SWF? Then I can replace all my icons with just one SWF (and a folder containing XML's and icons etc.)!".
The carousel part is working great, the icons are made and their names and linkage are loaded with XML files, but there seems to be a problem with the linking.
I tried to use the getURL, but this gave me errors and always opened a new webpage (which I don't want).
So now the question for you is: can I run programs the way the icons open them (with a direct link to the .exe)?
Thanks in advance!
Other Programs
Are there any other programs that can publish a fla file.
I keep getting a error message when I go to publish my page:
not enough stack space
10.3.7- OSX
768 ram
Flash MX 2004- 7.2
.swf --> .fla Programs
I was wondering what was the best program for recovering .fla's from swf files. I've lost a few personal projects by being stupid, but I have the swf's.... Id like to have one of these conversion proggies around for back up - any info would be great!
Peace
Other Programs
Are there any other programs that can publish a fla file.
I keep getting a error message when I go to publish my page:
not enough stack space
10.3.7- OSX
768 ram
Flash MX 2004- 7.2
Programs
Hi
I am planning to build an all flash website and was woundering what the best program to do it is? any one know? or any personal opinions?
Thanks
Chris
3d Programs Other Than..
Are there any good programs for designing 3D backgrounds and stuff,
Other than the following..
Photoshop
3D max
I dont want Flash oriented 3D programs. Just some 3D graphics design programs.
Thanks any advice can help.
Programs
I have been viewing some really awesome web sites out there. The questions i have is what programs are used most commonly for the cool flash effects
i.e. - the light shinning thru the text
It seems hard to beleive that so many diff sites are using the same effect from coding .. any program names that are helpful in designing these effects would be appreciated.
I Need To Allow Programs To Run
I'm developing a small app which is to be used to choose which facility to run. The user (effectively) clicks a button on the app and is taken to what has been chosen. This could be a web page on the intranet, a flash movie or an executable program.
It's in running the executable program that I'm having problems since it detects that I am downloading an executable file and asks if I want to save or open it. Clearly I always want to open it.
What do I need to do in order for this to happen without asking?
The app is a raw flash movie but could equally be embedded in an HTML document. The web server runs on the same machine and is Apache Win32 and heavy use is made elsewhere of PHP4. The browser is Internet Explorer 6.
What Programs Do I Need?
OK guys.. i made a post before and no one really helped me out...
i would like some people to give me a list of programs i need to... uhh "get" and learn, to be able to make a cool website...
I have adobe photoshop, bryce 5 3d and flash MX...
1)
2)
3)
4)
Then.... when i make this 3d image or whatever it is.. what format do i save it to.. to import it to flash MX (if flash mx is in that list)
Thanks alot guys.... Of course.. any sites or any other info is appreciated.
Help With Programs...
Anyone know where i can find 3D Studio Max and also what programs can you recommend. I already have Flash MX and Swift 3d.
Thanks...
Executing Programs
Is it possible to run an external apllication from inside a movie. It is, like calling WinAmp with a button.
Access Other Programs
I am trying to access other programs through Flash using a button. The two programs are microsoft Access and Excel. What type of script would open up one of these programs and then the document or data? I've been using "get URL". It opens up the browser and then the document.This only works when testing the movie. When I put it on the web it doesn't.
Thank you.
Rhett Miller
rhettsmiller@hotmail.com
Launch Other Programs?
Hello,
I was wondering, since we are able to launch email programs from flash using getURL(mailto:blah@blah.com), can we launch other programs too (ex. WORD,EXCEL,PAINT,etc...)?
Authoring Programs
Alrighty... I'm a total n00b when it comes to Flash...
I want to know if there's any free authoring programs out there, where to find them, and which is the easiest to learn with.
Now any Half-Life gamers out there who have tried to use Worldcraft 3.3 know that it's a ***** to figure out... But I taught myself that, so Flash shouldn't be much harder.
Anyway, any help would be appreciated. Thanks in advance.
How Do I Execute Programs?
I'm trying to use Flash to design and build an interface for a CD. However, I have not been able to reliably get Flash to execute files. The closest thing that I can do is have it try to download it from my HDD or CD. Is there a reliable way to get Flash to just execute a program? Thank you for any help.
Email Programs?
Are there any program that actually send email using script directly. None of the FLA's example that I have found work at all. Can someone personally give me a link that actually works with hotmail? Thanks
Programs In Flash
Hi all!
I have some doubts in Actionscripting. Please help me out.
Q. How can I use combination of two keypresses in Flash to do one event?
Example. If user presses Shift+K then my Flash file takes him to a new page where he gets some cool information.
Q. Is there anyway I can create programs in Flash? Can I add File>New or File>Save Option?
Example. Can I make a Text Editor like Notepad in Flash?
Q. I want to make a Text field in which you write a value and press Enter then a result comes. How can I make a Press Enter event in a Text Field?
Q. Please give examples on String (function), String.charCodeAt and String.concat.
I have been learning Actionscript by "Actionscript - The definitive
guide by Colin Moock". These questions are doubts where I get stuck up.
Please explain whatever you send and I'll be very grateful if you can send examples (Fla Files). That would help me a lot.
Thanks.
Yours Sincerely,
Carl
Installing Programs
Hi all,
IŽm designing a trialware CD - iŽll export it to .exe as it is ready.. the cd will contain lots of programs and some articles in .pdf that have to be load as the user clicks a button. If the user doesnŽt have an AcrobatReader, for example, he should be able to install it from the CD. Which is the script that I have to use to link a button to a file, and also to execute it in the same time?
Thanks...
!maracatu!
Flash Programs
what are some cool flash program...... i no flash mx and swish...is there are any others..?
Flash Programs
Any Cool FLash programs.. i no flash mx and swish and insine something any other flash programs?
Other Macromedia Programs?
ok i kno wut macromedia flash is, but wut is freehand, fireworks pro, dreamweaver, and coldfusion do? am i missing any? i want the one that lets me embed swf files into html documents. i think its dreamweaver, but i dont wanna buy the wrong one!
|