all groups > flash actionscript > june 2006 > threads for thursday june 8
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
How to stop a sound from loading ? my_sound.unload or something ?
Posted by adrianTNT at 6/8/2006 10:59:27 PM
I want the sound to stop loading when I press the stop button, I have:
var my_sound:Sound = new Sound(_root);
my_sound.onLoad = function() {
my_sound.start();
};
preload_btn.onRelease = function() {
my_sound.loadSound("some_sound.mp3", false);
};
stop_btn.onRelease = function() {... more >>
accessing variables and methods from a loaded external swf
Posted by S1n0Byt3}: at 6/8/2006 9:56:40 PM
:mad; ok, I have been at this now for 2 days straight without success. I am
using external swfs as a mean of customizing gui design. The default main swf
is supposed to load the external swf, and manipulate the variables and methods.
When I debug, it seems to show up on the stack that the vari... more >>
variable in path
Posted by LSNsaltlamp at 6/8/2006 9:47:24 PM
How can I use a variable in the path? (I know this is not called the path but I
can't think of what it's called). For instance:
instead of:
this.symbol1.symbol2._height = 800;
I want
var my_var = "this.symbol1.symbol2";
my_var._height = 800;
... more >>
Progress bar for FLV
Posted by jlucchesi at 6/8/2006 8:51:12 PM
Hi -
I have a site with some pretty hefty FLV's and I want to show the user that
they are loading...the progress bar thing.
So I used the code right out of the livedocs for "Creating a progress bar for
loading FLV files with Actionscript". I used it with their sample FLV and with
my FLV ... more >>
what's wrong with this code?
Posted by Steve Robertson at 6/8/2006 8:48:13 PM
Don't get any error msg's, just a blank stage. Any ideas what's wrong?
Frame 1 of Main.swf:
-------------------------------
if (init == undefined) {
var aSWFs:Array = new Array("an1.swf", "an2.swf", "an3.swf");
var nSWFs:Number = aSWFs.length;
var nCurSWF:Number = 0;
var aSWFmcs:Array =... more >>
edit variable
Posted by LSNsaltlamp at 6/8/2006 8:22:18 PM
I need to take a variable with the name "11.swf" and restrict it to just the
number.
I know this code is wrong but it gets the idea across.
on (release) {
var page = "11.swf";
var pagenumber = (page-".swf");
trace(pagenumber);
}
I want the trace function to return 11
... more >>
Page name
Posted by mcshaw at 6/8/2006 8:04:03 PM
What is the easiest way to get the page name of the html document which the swf is in.
I can not place a js function on the page.
I was hoping I could easily use the js property window.location. ... more >>
Cannot remove my buttons from the stage
Posted by frustratedjim at 6/8/2006 7:04:55 PM
Hi Guys
Any help here would be a blessing. I have created a a set of dynamic buttons
using a loop, (not a for loop as i wanted each button to animate onto the stage
using onMotionFinished. But I cannot remove them from the stage and seem to
have some major targeting issues. I have tried to... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
dynamic movie clip "button"
Posted by yarkehsiow at 6/8/2006 5:02:06 PM
hello,
Could anyone tell me how to turn the attached .SWF ("other.swf") into a
"button" that could have an onRelease function attached to it? i tried to just
make a function with its name, but no luck...
and one step further: how to address a movieClip that resides within
"other.swf" ca... more >>
help with error msg
Posted by Steve Robertson at 6/8/2006 4:54:47 PM
The following code throws an error (Attribute used outside class) on
line 3 and 4. What have I done wrong?
Can you see any other problems with this code / approach??
(the goal is to load a number of swf's into movie clips and then show
them one after the other)
Steve
-----------------... more >>
Wrapping text into a customized text area
Posted by Animadrew at 6/8/2006 4:50:41 PM
I need to have text loaded dynamically into a star-shaped text area. Is there
any way to do this? For example, could I place a few dynamic text areas of
different widths so that they make the rough shape of a star, then get the
text to load into the first area and have the words wrap onto eac... more >>
sending string to automation controller
Posted by jmankd at 6/8/2006 4:44:56 PM
I am developing an interface for controlling my house. The controller Can
recognize URL encoded commands. My test button worked flawlessly using get URL
function, but returns with opening a new browser and displaying the results.
So I have been trying load vars. I created a texfile with t... more >>
handling a function on the timeline vs. button
Posted by NodeNode at 6/8/2006 4:44:22 PM
this is working...
on(release){
_root.QuitButton.enabled = false;
}
this is not working...
button script:
on(release){
mDisableQuitButton();
}
timeline script:
function mDisableQuitButton(){
trace("disable function called");
_root.QuitButton.enabled = false;
}
t... more >>
SWF file format
Posted by davepla at 6/8/2006 4:38:57 PM
Hi:
What are the known differences in SWF file format between Flash and third
party tools?
I've inherited a desktop app project and I'm having a lo t of problems when
loading a rather big and complex movie in a MC/level. Sometimes it doesn't run
at all, others it halts in a randowm way... more >>
LMS-Scorm template What to use in fscommand in fla?
Posted by lindamck at 6/8/2006 3:40:02 PM
Please help! I have search and read and nothing has seemed to answer this
question. I have created a complete/incomplete module (no score needed...just
show completed when user finishes) and published it with Flash w/Scorm 1.2
tracking template. The movie plays in the LMS but I still need s... more >>
loading text problem
Posted by John_Lilly_5 at 6/8/2006 3:35:50 PM
I'm using a loadvars action to load external .txt file, and it loads the file
BUT only will read numbers out of the file.
It won't read letters-which make words- which make sentences-which makes me
angry.
Any idea why this would be? I've tried playing around with the .txt file
encoding,... more >>
possible to loadMovie after a pause?
Posted by purpleape at 6/8/2006 3:29:13 PM
HI,
Im using a script that will do this on a button release
on (release) {
play();
screen.loadMovie("HR-start.swf");
}
The problem is that I want it to play for about 7 frames, and THEN load the
movie. The playing creates a transition of my thumbnails, which then reveal the
s... more >>
FLV File meta Dat information
Posted by arunbe at 6/8/2006 2:47:34 PM
Hi members,
I need some clarification in FLV format.
I am having three flv files in my server and I am loading them one by one.
And using stream.onMetaData( ) function i am getting the total duration and
other information of video file.
But, it doesn't work for all the files.
Its worki... more >>
loadMovieClip - createEmptyMovieClip
Posted by cwick34 at 6/8/2006 2:46:18 PM
I have a list of text fields (21 of them) each with a button that loads a movie
clip based on the text in it's correspondingtext field. I have also created 21
emptyMovieClips (I need each swf to load and be moved around once loaded,
otherwise I could just use one empty clip). However, I get ... more >>
Action Script Question
Posted by Kookmon at 6/8/2006 2:36:35 PM
I heard rumors of Flash going back to just JScript instead of Action scipt. And was just wondering if this is true? I was thinking of buying version 8 but was not sure.
Thanks... more >>
Attribute used outside class
Posted by ChrisFlynn at 6/8/2006 2:03:30 PM
So I have a class. Within this class. I have a function that I want to declare
local variables for.
So it looks something like this:
class MyClass{
//DECLARATIONS OF MyClass
public var MyClassArr:Array = [];
//CONSTRUCTOR FUNCTION
public function MyClass(c:Object) {
constru... more >>
external swfs within swf
Posted by yarkehsiow at 6/8/2006 1:12:37 PM
hello,
i have figured out how to load 4 swf's into a master swf. each swf loads some
jpgs at runtime which are treated as buttons (they have rollover effect, and i
can make a trace statement happen onRelease).
now i have an empty movie clip placed in the master swf, which is supposed to
h... more >>
Scroll bar in scroll pane
Posted by Carly04 at 6/8/2006 1:00:38 PM
Hi
Does anyone know how to move the horizontal scroll bar to the top of the
scroll pane. The scroll pane is the standard component that comes with flash.
I've looked through the actionscript but cant see anything that stands out.
Thanks for any help!
Carly
... more >>
Loading txt
Posted by Tolk at 6/8/2006 11:43:38 AM
i'm using:
loadVariablesNum("percentagestext.txt", "/dynamicText");
to load some text into a dynamic text field (located in mc dynamicText).
When i test the movie i get the flash error for when it can't find the file:
Error opening URL "file:///F|/james/StatsRLO/RLO/All/percentagestext... more >>
How to reference an attached movie?
Posted by tom_burrow NO[at]SPAM umbro.co.uk at 6/8/2006 7:30:09 AM
Hi,
Please can someone help? I have some code that attaches a movie using
actionscript so many times so that they are all over the screen. This
all works fine however how do you reference them once they have been
created?
Here is the code:
var box:MovieClip;
r = 0;
for (var v=0; v < ... more >>
Tree component not working in a mask
Posted by blueprnt at 6/8/2006 4:37:41 AM
I have been having problems displaying the labels on tree component , I have
now found the cause it was in a mask.
Once I moved it out of the mask it worked fine!!. But the thing is now how do
I get it to work in a mask????
You can test this for yourself by opening the gallery_tree.fla ... more >>
Help With My Matching Game Array
Posted by rring at 6/8/2006 12:59:33 AM
Hi
Im creating a simple matching game where user clicks on a red square, then
they have to find the other red square and click on it, which is a match.
The problem is that if I click on one button, it registers the value into the
array (e.g. "red"). But then when I click the second button... more >>
Inform teacher if student has finished assignment
Posted by twistedpancreas at 6/8/2006 12:41:27 AM
Hi there guys,
got a pickle for ya;
Is there someway for a assignment (done in flash) to inform a teacher when a
student has finished it?
Sorry if thats a bit general, but just getting an idea.
Would it involve some database work?
... more >>
How to load and resize a SWF in a MovieClip
Posted by Jesús_Ángel at 6/8/2006 12:00:00 AM
Hello.
I want to download a SWF file and load it in a MovieClip. Once the
downloaded SWF is loaded in the MoviClip I want to adjust its size to
the parent MovieClip. I also want to restore the child clip to its
original size and to drag it inside the parent MovieClip
But it doesn't work:... more >>
Set focus
Posted by veiky at 6/8/2006 12:00:00 AM
I am creating a samll quiz kind of a thing wherin there will be a question on
the stage along with four images(these are movieclips). User can click on any
of the image and then click on next button in order to goto the next question.
When user clicks on next button another question with fou... more >>
changing background color of dynamic text?
Posted by aa at 6/8/2006 12:00:00 AM
In dynamic text one can can change font color etc.
How do I change background color from Action script?
... more >>
PrintJob() acting strange
Posted by LSNsaltlamp at 6/8/2006 12:00:00 AM
I am attempting to print a dynamically loaded movie clip and scale it to fill
the page. The clip begins at 300x400. I can successfully resize the clip but I
cannot get it to print the whole clip. The clip resizes but the printer only
prints a 300x400 section of the resized clip. How can I get ... more >>
flash application help
Posted by arun vaswani at 6/8/2006 12:00:00 AM
hi,
i'm making a flash application installer... at the user end the exe file will
be installed.
i want to call the support files i.e; xml, sound, pictures..etc from cd
how do i define a path since the path will change on every machine?
... more >>
Loading External SWF
Posted by xxVERITASxx at 6/8/2006 12:00:00 AM
Hello, I'm trying to load an external .swf into my current flash document. I
have a "dummy" MC (dummy_mc)
dummy_mc.loadMovie("slideshow.swf");
This seems to only play the first frame of the movie!?! Anyone know what
that's about?
... more >>
|