all groups > flash actionscript > march 2006 > threads for tuesday march 14
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 31
Unload XML ;)
Posted by redl3tt3r at 3/14/2006 11:56:29 PM
I am using
XML.load("myXML.xml");
to load an XML document into a presentation model and for it wo wor correctly
I need to be able to clear the XML and load anoth file.
if I just use the same action again it add the new file to the end of the
current XML. Is there a way to unload/cle... more >>
my code works in flash player 6 but not flash player 7
Posted by Kotchin at 3/14/2006 11:38:48 PM
i have this code
percent -= (percent-((loading/total)*100))*.25;
which works fine in flash player 6 but not if i export the .swf to flash
player 7. this baffles me.
i think it must be something to do with the -= operator. in flash player 7
trace(percent) returns Nan, but in FP6 the cor... more >>
Html to Flash
Posted by ni9e at 3/14/2006 11:14:29 PM
hi all...
ill keep it short and sweet. im trying to call a javascript function in flash
from my html page. Here is the function...
<script language="javascript">
<!--
function loadTopic(){
var loadMenuItem = "sub_aboutus.swf";
//loadMenuItem = String(loadMenuItem);
}
-->
</... more >>
Timer or Counter
Posted by JRW32 at 3/14/2006 10:40:29 PM
I'm have a number of scenes and I want to play them in order but wait about 5
seconds between each scene. I guess I can just add frames until the 5 seconds
is up, but how can I use this in acitonscript. I couldn't find anything
helpful in searching the forums
Thanks.
... more >>
dynamically changing the color of a movie clip
Posted by athomas32 at 3/14/2006 10:40:23 PM
I am creating buttons from the info that is loading in by a xml file. The xml
file passes in a color for each button. this is all created dynamically, there
could be any number of buttons. Just depends on the xml. So i need a way to
have all of the buttons be different colors. How would go ... more >>
dynamic text single line
Posted by cadflash2 at 3/14/2006 10:32:08 PM
I have a dynamic text inside a rectangle. I need to adjust the font size of the
dynamic text so that it'll fit into the rectangle. I also want to adjust the
text font size when the movie clip is scaled. I'm attaching here with the
sample. It'll be great if you can tell me to adjust font size a... more >>
Camera.get and threshold.. help
Posted by paoloandrea at 3/14/2006 9:39:38 PM
I've make a Movie clip and the my idea is:
1. The webcam show may face into the flash
2. All colors of my hair (i've a brown hair) change into yellow
And i've make this script:
//
import flash.display.BitmapData;
import flash.geom.Rectangle;
import flash.geom.Point;
import flash.geom... more >>
Basic Action Help
Posted by glowstars at 3/14/2006 9:31:40 PM
Hello - I need to create basic stop and play buttons for a flash movie for
class. I have all the movie parts together - they are just movie clips that
fade in and out. I attemped to create a button to play the movie and one to
stop. Neither are working. I have all the move clips in one fol... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
how to write command "if (timeline volume=0) {...};"
Posted by a-w-z at 3/14/2006 9:27:29 PM
how to write command in Actionscript lenguage "if (timeline volume=0) {...};"
i have a problem with button which should respond to volume property. it
should check the main volume on refresh, is it a 0% ir 100%. or cuold this
action be figered out by creating a variable of volume value and the... more >>
removing border from ScrollPane component
Posted by j9lemmon at 3/14/2006 9:23:42 PM
I'm trying to remove the border from the ScrollPane component. I see in Flash 8
help that the border of all components uses the RectBorder class; that class
has four standard display styles, one if which is 'none'. It sounds like I need
to find the borderStyle setting and change it to none.
... more >>
loadMovie scaling
Posted by baazil1 at 3/14/2006 9:19:38 PM
so I have my main fla file and I am importing another swf into it via the
loadMovie function. On my main timeline, i have placed a holder movieClip onto
my stage and the actionScript for that movieClip reads something like this...
ppeSWF.loadMovie("swf/ppe.swf");
Hurray, it works like a ... more >>
Close a Movie Clip added with attachMovie
Posted by F7Firecat at 3/14/2006 7:52:56 PM
Should be a simple question. I am new to actionscripting, not new to Flash
I have a place holder movie clip called "placeholder_mc" on the main timeline
I am loading an internal movieClip called "helpmenu" into the place holder
using the following script on
a button in the main timeline.
... more >>
auto sized text field
Posted by RJstarter at 3/14/2006 7:30:34 PM
I need a function to adjust the text field's size automatically by the length
of the text content., so that the text field always is just long enough for the
content . Sometime, if the content is a lot, I need it to have multiple line
once it reach its maximum length.
Could someone give me... more >>
duplicating MovieClip with dynamic content
Posted by Pcoll at 3/14/2006 7:17:27 PM
hi,
I need to duplicate a movieclip which has dynamic content, i've been trying,
but i cant seem to achive what i need.
using duplicateMovieClip(), it creates a copy from the original, but without
the dynamic content. How can i solve this issue?
... more >>
can this be done from one button
Posted by _gary_ at 3/14/2006 7:06:38 PM
I am trying to use a button on stage to load a swf into a component loader
(mx.controls.Loader) (mx2004)and then on subsequent presses, advance to next
frame. the code is attached to the button
The movie loads, but on subsequent presses, it either reloads the movie? or
replays the 1st frame?... more >>
Component... Almost There!
Posted by delex_media at 3/14/2006 7:01:28 PM
OK. So just when I think I'm on a roll with my component, I hit another wall.
Basically I have a line component. The developer can drag the component to the
stage and apply changes to the color, length and flow direction. As you adjust
the length you have to resize the component (bounding b... more >>
unloading previous xml slideshow???
Posted by Thinmedia at 3/14/2006 6:58:56 PM
I am loading multiple swf's into the same "empty_mc" on main movie. Each loaded
swf contains a slideshow xml (cross-fading jpegs). But, as each swf plays, the
xml data gets all confused and the slideshows get buggy - images from a
previous xml start to appear. It seems I need to flush out the ... more >>
What's wrong with this simple actionscript?
Posted by tomservo6 at 3/14/2006 6:29:39 PM
This seems like it should work but it doesn't. I have a 1 frame movie with a
circle MC instance (circle_mc). I have it set so you can click and drag it
around the screen. I also have a reset button (reset_btn) that should (but
doesn't) reset the circle to it's original location. The dragging a... more >>
Play/Pause Button
Posted by Juan Valdez at 3/14/2006 6:17:55 PM
Hi Everyone -
I did this some time ago but I forgot how to do it...I have a basic flash
animation and I want to create a Play/Pause button does anyone have the
actionscript for this button...
one button push to play and push to pause
... more >>
diable button based on mouse position
Posted by rdstealth92 at 3/14/2006 5:57:25 PM
can i turn off a button instance that is embeded in a movieclip based on the
mouse positon on the main stage?
if so how would i do this
i amagine i would use the if/else actionscript but i unsure how to do this.
please help
... more >>
Screwed Up Page Order by Setting Tabs
Posted by socalprof at 3/14/2006 5:39:42 PM
Help! I'm rather new to all of this and trying to learn. I have a movie clip in
my library that contains the pages for my site. One of the pages is an email
form. It is the 4th page (frame) in the movie clip. I had everything working
great, but noticed the tab order was incorrect. So, I clicke... more >>
Set onPress for attached movie clip?
Posted by YossarianPickwick at 3/14/2006 5:04:24 PM
Hi all,
I wrote a dialogue box. I can set the questions and answers etc. and the
buttons are dynamically created on it with names button0, button1 etc.
In a larger piece of code, i do the following:
Code:
attachMovie("DialogueBox", "mcDialogueBox", getNextHighestDepth(), {_x:200,
_... more >>
Controlling a Movie Clip
Posted by Craig Grant at 3/14/2006 3:54:40 PM
I am having trouble controlling a motionTween Movie Clip I created. The
motionTween is 10 Frames long and I want it to be controlled by a rollOver and
rollOut function. When the user rollOver the movie clip I wan it to play frames
1 thru 10 and stop and when the user rollOut I want to the Movi... more >>
what are differences between these two function statements?
Posted by Burak Delice at 3/14/2006 3:37:19 PM
what are differences between these two function statements?
-------------------------------------------------------------------------=
-------
function func1 () {
//.......
//.......
}
-------------------------------------------------------------------------=
-------
and
... more >>
HELP! Can't link video as pop-up from swf!
Posted by TheREALJessep at 3/14/2006 3:36:05 PM
I tried posting this once but it got run over by a ton of other posts. ;) I
trying to create a multimedia cd so that the main swf plays. This isn't a
problem, however I need for mpg clips under a different path on the CD to open
on a button press. What script do I need to open_blank a .mpg fil... more >>
TextFormat.getTextExtent() deprecated in Flash 8, with no replacement
Posted by David Stiller at 3/14/2006 3:28:58 PM
I just answered someone's post by recommending the
TextFormat.getTextExtent() method. In researching my response, I found that
this method is deprecated as of Flash 8. Curiously, there is no
replacement. I don't think I've ever seen a deprecated feature without a
recommended alternati... more >>
scripting progressBar component
Posted by SherwoodClark at 3/14/2006 3:17:34 PM
I'm trying to create a preloader for a movieclip. I have the preloader as its
own SWF file and then I call the LoadClip() method of the MovieClipLoader class
to load the Final.swf on _level2 in the main timeline of the preloader.
Final.swf is a form made up of textInput, comboBox, and radioBu... more >>
Links problem
Posted by 11223311 at 3/14/2006 3:16:31 PM
Hi!
I have a problem on creating an website.
the main page is divided on frames and in each frame i've put a flash movie.
the problem is that the buttons in the flash movies don't work. but if i open
a frame page separately, the buttons work.
what can i do???
... more >>
Creating Random Colors
Posted by Crandom at 3/14/2006 1:37:18 PM
How do you get actionscript to dynamically change the background color of the stage to a random color? Any help appreciated.... more >>
adding numbers in array
Posted by The 350Z at 3/14/2006 1:28:51 PM
Hi,
I'm trying to add the numbers automatically when new object is dragged to the
stage, so the total price would be updated
any thoughts?
Thanks
automatically if new item is added/deleted.
But for some reason it gives me this: [start with zero in front, i think it
was from... more >>
External mc to ctrl Main mc (Scene 4)
Posted by The Oh Brothers at 3/14/2006 1:13:55 PM
Hi... I need some help..here's the problem..:
I have a main MC (let's name it "Main.swf"). When main.swf starts playing it
animates and stops at the last frame, and a button will appear.(name it
"Home"). This is (Scene 1).
When someone clicks on "Home"... Scene 4 of Main MC will play...... more >>
action script help plz
Posted by Martin Bean at 3/14/2006 12:55:50 PM
Hi, ive been following the 3d wheel turioal and its just what i want ive
slighty edited it to suit what i need but i just cant seem to get other movie
clips to go onto the wheel im pretty sure its to do with this line (
attachedObj = theScene.attachMovie("pane2", "pane2"+i, i) of code but don... more >>
Why javascript calls thru getURL, fscommand, ExternalInterface don't work locally
Posted by eric76 at 3/14/2006 12:46:16 PM
getURL and fscommand does not work if called from a local SWF (that is not
loaded over internet). This is a problem that appeared with the new Flash8
player's more strict sequrity. I got interested in this problem so I thought I
would write my conclusions so far on it. I am in no way an expert... more >>
start animation at specific system time
Posted by moz at 3/14/2006 5:48:14 AM
Hi all,
must be very easy for most of you, not for me though, as being a
recent
beginner!
I want to jump the head to a specific frame on specific (system) time.
Plz help me what should be the steps to play the animation at specific
time.
thanks
... more >>
start() and stop() sounds
Posted by swim4it at 3/14/2006 4:48:20 AM
I'm playing a flv movie within my clip. I'm trying to figure out how to turn
off the movie sound and turn it back on with a toggle button. I have my toggle
button, and I can get the music to the .flv movie to stop using this:
_parent.song.stop();
song was defined in the main timeline a... more >>
actionscript to scale a swf?
Posted by twistedpancreas at 3/14/2006 3:54:53 AM
i'm doing a portfolio site and have a intro swf file with animation with buttons
the buttons then open other previous client swf's (in a new layer), but need
to be scaled down slightly to fit into the intro swf's frame
is there some actionscript that will loadmovie in a new layer, scale it... more >>
loading xml files from loaded movie clips
Posted by flash4543 at 3/14/2006 2:26:18 AM
I have a main swf file in which I'm loading other swf files via a combobox and
xml files. I can't get the xml files to load from anywhere other than root. I'm
making a CD. If all files sit in the root directory, everything works but if I
want to load a file in root/subdirectory with the xml fi... more >>
Multi Directional Mouse Controlled Panning with borders
Posted by Graem81 at 3/14/2006 1:31:25 AM
I'm looking for a tutorial or FLA of Multi-Directional Mouse Controlled Panning
of an image with a border. So say the mouse is positioned in the center of the
stage and you begin to move the mouse upwards the movie will follow at a
controlled speed, same would go for downwords, diagonal etc. ... more >>
Have Movieclip Play As a Preloader
Posted by woofdg79 at 3/14/2006 1:26:53 AM
Hey everyone,
I'm kinda new to actionscript, and I can't seem to figure this one out. I'm
making a flash website, and it takes a few seconds to load up. So I want to
make a preloader for it, but I want the preloader to be a movieclip that I
made. I want it so that every time it reaches ... more >>
Get hosting page's URL
Posted by GmR at 3/14/2006 12:07:00 AM
Does anyone have a way to get the URL of the page that is hosting a swf file?
My swf file will be shared publically, and I am looking for a way to track
where it is used.
(_url provides the url to the swf itself. I want the page's file name)
Thanks
Geoff
... more >>
finding registration point with actionscript
Posted by stephan.k at 3/14/2006 12:00:07 AM
Hi Forum
I'm building a scaling class which takes the movieClip and the targetScale as
input parameters. The class's main functionality is that it scales the
movieClip to its target scale and also readjust its position so that the
scaling appears to happen from the center outwards (does t... more >>
Tranform on dynamic text field problem...
Posted by nickcrispini at 3/14/2006 12:00:00 AM
I have a dynamic text field that I have transformed slightly with a skew. The
problem is the text doesn't render. If I remove the transform the text
renders. I have also tried with a rotation and it's the same problem. Does
anybody know a work around?
Thanks.
... more >>
Duplicating text boxes
Posted by fungusbogus at 3/14/2006 12:00:00 AM
HI folks
I am trying to create a "reading" tool that highlights individual words as
they are read. My thinking is that each word should be in its own textbox.
Using the mc.CreateTextField(instanceName, depth, x y width, height) method to
create individual text fields would be good if I cou... more >>
What is wrong doing this?
Posted by JimmySlam at 3/14/2006 12:00:00 AM
///////
cont = 0;
j = 0;
while (cont<section[i].subsN) {
if (picHolder.childNodes[j].nodeName == "content") {
cont++;
trace("Nuevo nodo:"+picHolder.childNodes[j].nodeName);
trace("("+picHolder.childNodes[j].firstChild+")");
section[i].subs[j] = picHolder.child... more >>
scrolling movieclip under a mask
Posted by ale78 at 3/14/2006 12:00:00 AM
hi!
I've a problem, I've to make a "scrolling gallery" and I've seen this example
http://mannometer.homeip.net/flash/endless_mc.html
but my problem is that I've to scroll my gallery under a mask that show me
only a part of the gallery.
I've change the script:
LEFTBORDER = mc._x;
RIGHTB... more >>
loading an swf file
Posted by simey70 at 3/14/2006 12:00:00 AM
Hi,
im building a website using flash, and have some animations i want to include
in this flsh file. I know how to have the animation sitting on the stage or
timeline (import to stage/library) but i want to load this swf file using
action script, and load it several times throughout the web... more >>
Visited menu?
Posted by ritraining at 3/14/2006 12:00:00 AM
Hi,
We've just about finished an button driven navigation menu (for an interactive
cd) in flash that loads new movies depending on the button pressed. We have
been asked if there is a way that the user can see which of the buttons they
have accessed(pressed)?
The buttons are a seperate ... more >>
data from flash to email id
Posted by wnn at 3/14/2006 12:00:00 AM
i have some check boxes, some radio buttons and text feilds in my flash movie from which i want to send the dat to an email address can someone help me soon pls... more >>
changing registration points with actionscript 2.0
Posted by funk101 at 3/14/2006 12:00:00 AM
Is there a way to change the registration point of a text field in action
script? I'm using the 'zoom' transition, and it's coming in from the upper
left. The docs say if you want to start at 'center', then change the
registration point of textField. However, it's created on the fly with
act... more >>
code search not working
Posted by CastTen at 3/14/2006 12:00:00 AM
Hi,
I don't understand why the search function in Flash sometimes is not
working. I want to find a string in my actionscript (the word 'font') to
see where I set a font on a textfield in my code. But the result gives
me one code-line that has nothing to do with what I was searching for.
... more >>
ASPUPLOAD + Flash8
Posted by JimmySlam at 3/14/2006 12:00:00 AM
Hi I am triyingo to upload a file with ASPUPLOAD which works fine the only
problem I need to change the folder where is going to be uploaded.
I tried with
folder = "\"+cstr(request.querystring("folder"))
path=Server.MapPath("."&folder)
Set Upload = Server.CreateObject("Persits.Upload.... more >>
Flash Player 8 and IE
Posted by Roice at 3/14/2006 12:00:00 AM
Hi everyone.
Just a newbie on this forum and need a little help. I designed one site using
flash 8 and framesets. I made 4 navigation buttons in flash which when clicked
will load a page on an iframe. 3 of the buttons will load html pages on the
iframe and the other will load a page with ... more >>
Actions for Downloading button
Posted by Skivling at 3/14/2006 12:00:00 AM
Howdy fellas!
I have a .mov file that i want the user to be able to download to their hard
drive by simply pushing a button on my flash page. How would the actinoscript
for such a button look?
Thanx!
Finn, Sweden
... more >>
Re: Using Shared Objects
Posted by Denesh Kumar at 3/14/2006 12:00:00 AM
Hai kglad,
Can u tell ur chat id i want to learn basic of xml and connecting with flash .
... more >>
|