Simple Path Problem.
Alright, heres the deal, i started making this game, its a sniper one. and i made variables to represent the ammo and the clip #, the only problem is when i try to assign these values to dynamic text. it simply dont work.i tried two methods. one was to set the path in the var box of the dynamic text "_root.sniper_mc.ammo"and that works. but only for a second, once the animation of the shot being taken goes by, it resets to 0, even though the ammo variable is still above that (checked with trace)the second method i tried was to make a textSet function. this didnt work either, please tell me if theres something wrong with this code.if(ammo < 10){ _root.sniper_mc.scope_mc.ammo_mcv.ammo_txt.text = "0" + ammo;} else{ _root.sniper_mc.scope_mc.ammo_mc.ammo_txt.text = ammo;}_root.sniper_mc.scope_mc.clip_mc.clip_txt.text = clip; these paths are correct, i quadruple checked them, but they dont work, and the variables clip and ammo are located at _root.sniper_mcif you know whats wrong with my stuff and think you can help Please do! if you want i can show you the game so far so you can have a clearer idea of what i mean.
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 04-11-2007, 04:29 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
- Help With A Simple PATH
- Simple Variable Path..
- Probably Simple - Path Not Working?
- Problem With Simple Path
- Simple Help - Path/sound
- Simple Path Finder
- Very Simple Path Not Working ¿
- Target Path...simple ?
- Path Question.... Simple.
- Problem With Simple Path
- Simple Path Problem - Help?
- Simple Target Path Question.
- Simple Target Path Question
- CreateEmptyMovieClip Simple Path Problem
- Extremely Simple Path Problem?
- Simple Parent Path Question
- Simple: How Do I Load An XML With A Dynamic Path?
- Simple String To Path Question
- Simple Random Movie Loader, Help Me On The Right Path Please
- [F8] Simple Trig Animation Question Of Elements Moving Along A Curved Path
- Variable Take On Content Of A Root Variable And Not Its Path - Simple Please Help
- Using Eval Function And Variable In A Path (target Path)
- Cannot Export An Avi Of Motion Along A Path When Path Is Specified With Action Script
- _root.path="http://www.sitename.com/path/FlashSite/"; Script Issue While Online
- Variable Path Name --> Path=_root
- _root.path="http://www.sitename.com/path/FlashSite/"; Problem While Online
- Wrong Path Given, What Path To Use?, And Why?
- AS3 - Path Problem ? Var In Path Problem Not Working
- LoadMovie SIMPLE Question For Simple Minded Graphic Artist
- Can You Help Me Fix Simple Javascript Code On Button Inside My Very Simple Component?
- [F8] Very Simple Question, Very Simple Answer, I Hope. (Flash 8, Collisions)
- Can You Help Me Fix Simple Javascript Code On Button Inside My Very Simple Component?
- Simple Problem. Simple Answer? Arranging Windows W/flash
- Random Tweens - Simple Question, Simple Answer?
- HELP SIMPLE, SIMPLE XML-FLASH Load Into Movie Clip
- Simple Problem Neeeds Simple Answer
- Simple Question, Probable Simple Answer
- Simple Button Mouseover Effect - I Know It's Simple, Just Don't Know How To Do It
- Simple Button, Needs Simple Action Script
- Simple Question - Simple Answer FLASH MX
- Simple, Simple... Input Field Question
- Simple Question *(I Hope) From A Simple Newbie...
- Path
- Path?
- Path? ...please Help
- Path
- Path To CD
- Help Path?
- Path From Php
Help With A Simple PATH
I'm having so much trouble just getting the path to the movie i'm working in.
The code sits in a AS file , i want to get the path inside the listener events.
Any help ??
ActionScript Code:
class MyPage extends MovieClip {
//Variables
var Background_color:String;
var Columns_array:Array;
var Objects_list:Array;
var myListener:Object = new Object();
var path;
//Constructor
function MyPage(){
path = this;
trace(path); //works
myListener.onKeyDown = function () {
trace (this._name); //does not work , undefined
trace (path); //does not work , undefined
}
myListener.onKeyUp = function () {
trace ("You released a key.");
}
Key.addListener(myListener);
}
}
Simple Variable Path..
i have a 'circle_mc' movieclip inside that 'circleInside_mc' and the code on that is...
onClipEvent (enterFrame){
var test;
test = 100;
}
-------------------------------
code on _root frame 1
var c = _root.circle_mc.circleInside_mc.test;
trace(c);
------------------------------------------------
why the value is not displayed. it says undefined.
thnx!!
Probably Simple - Path Not Working?
Hi,
I am doing my first project in AS3, I am doing something wrong.
On the main timeline I have a movie clip vidBox1_mc.
vidBox1_mc has a stop action in frame 1.
On my main timeline I also have a movieclip A_mc which contains B_mc.
When I get to the last frame of B_mc I want to tell vidBox1_mc to play.
when I use
Code:
parent.parent.vidBox1_mc.play();
I get this error
1119: Access of possibly undefined property vidBox1_mc through a reference with static type flash.displayisplayObjectContainer.
Problem With Simple Path
Hi there, I'm just getting mad with this, I have a movie Start.exe that loads an index into an empty mc called dropzon, then, the index loads on empty mc "esc" a right menu and this menu loads "interfacemusical", so the path is what follows:
start.exe -> loads dropzon (index.swf)
|
dropzon -> loads esc (rightmenu.swf)
|
esc loads ->interfacemusical (music.swf)
My problem is that the music player has a repeat function, that is:
Code:
if (_parent.playfr == _parent.music._totalframes) {
if (_parent.repeat=="track") {
}
else if (_parent.repeat == "all") {
if (_parent.index == (_parent.menuItems.length-1)) {
_parent.index =0;
}
else {
_parent.index++;
}
_parent.toTop(_parent.index);
}
else if (_parent.repeat == "off") {
_parent.music.gotoAndStop(1);
_parent.visual.Status = "stop";
}
}
updateAfterEvent();
}
The problem is that, whatever the repeat function that's active when the song arrives at the end my ROOT, I wanna mean, index.swf starts from the very beginig.
I promised that I've tried to solve it, but I can't find the solution,
anyone can help me please???
A LOT OF THANKS!!!
Simple Help - Path/sound
I can't for the life of me remember how to make an object follow a path.
I also need to figure out how to edit the sound that I am putting into my flash file.
Simple Path Finder
Hey everyone,
This is preliminary version of a file I will be using for writing a series of tutorials on Abstract Data Types and search algorithms.
Here is the preview: http://www.kirupa.com/temp/path/path_test.html
Basically, you can specify the 2 points by clicking on the squares. You can only have two points selected at any given time, so you will have to unclick on a selected point before selecting a new point. It's very user-friendly as you can tell (I'm kidding btw)
The search method is depth-first, but the actual path drawing is different, so the line drawn omits a lot of nodes returned by the depth-first search.
Feel free to offer any comments/suggestions/etc. I'll be going over and cleaning up some unnecessary methods and adding some needed features such as getting the name of an edge given a pair of nodes, etc.
Cheers!
Kirupa
Very Simple Path Not Working ¿
why does this not work
please take a look at these files.
92k .zip file w/ fla's (version 8)
www.garyhush.com/freeMe/pathProb.zip
Target Path...simple ?
say i have a main swf. and i have an external swf called music.swf with an animation on frame 2.
how can i access frame 2 on music.swf from the main timeline?
ive tried a few things and they dont work so im lost...
Path Question.... Simple.
I ran over a simple problem and I'm too tired to understand it
I have a class and a fla file. The class is in 2 sub-folders and the fla is in the main folder something like this:
Everything is in a folder called "document class", so this is what I have inside the "document class" folder:
[com] > [sub2] > Test.as
whatever.fla
// [com] and [sub2] are folders
inside the whatever.fla I gave the root to my Test.as with com.sub2.Test
and well, it find the file but it is giving me an 5001 error... something regarding the package name...
inside the Test.as I have something like:
package {
public class Test(){
........
}
}
Not really sure what to do and why am I getting the error... I'm sure it's something simple but I simple can't see it.
Thanks.
Problem With Simple Path
Hi there, I'm just getting mad with this, I have a movie Start.exe that loads an index into an empty mc called dropzon, then, the index loads on empty mc "esc" a right menu and this menu loads "interfacemusical", so the path is what follows:
start.exe -> loads dropzon (index.swf)
|
dropzon -> loads esc (rightmenu.swf)
|
esc loads ->interfacemusical (music.swf)
My problem is that the music player has a repeat function, that is:
Code:
if (_parent.playfr == _parent.music._totalframes) {
if (_parent.repeat=="track") {
}
else if (_parent.repeat == "all") {
if (_parent.index == (_parent.menuItems.length-1)) {
_parent.index =0;
}
else {
_parent.index++;
}
_parent.toTop(_parent.index);
}
else if (_parent.repeat == "off") {
_parent.music.gotoAndStop(1);
_parent.visual.Status = "stop";
}
}
updateAfterEvent();
}
The problem is that, whatever the repeat function that's active when the song arrives at the end my ROOT, I wanna mean, index.swf starts from the very beginig.
I promised that I've tried to solve it, but I can't find the solution,
anyone can help me please???
A LOT OF THANKS!!!
Simple Path Problem - Help?
This should be a simple one..
In my main stage ive got a movie with an instance 'boySitting' I want to be able to play that movie on my main stage when the main timeline reachers the keyframe.. however.. I want it to play from a frame label "startEyes"
On the keyframe I want it to play from I have the code
_root.boySitting.goToAndPlay("startEyes");
However... its not working... can someone give me a quick hand?
Cheers
ex
Simple Target Path Question.
I'm new to actionscript and a little confused:
I have a named instance of a mc (techMovie) on my stage which is hidden behind other "interface graphics." I want this mc to move from hiding to a visible portion of the stage by having a button attached with actionscript cause the mc's playhead to goToAndPlay another frame in which I have set up a motion tween that will cause the mc to move. Let me note that this resides within a scene labeled, "AutoSync." Also, the actual mc has a layer of actionscripting with stop() actions on both the 1st and 10th frames (labeled "Hidden" and "Down".)
Here is the actionscript that I attached to the button to make the mc "move."
on (release) }
_root.AutoSync.techMovie.goToAndPlay("Down");
}
Any help would be greatly appriciated.
Thanks
Simple Target Path Question
Simple question...
In movie I have scene A, B, C.
I have a movie clip in scene B that when it gets to the end I wnat to play frame 180 in scene B.
How to I write the path to target frame 108 in scene B from a movie clip in scene B
where can I learn more about target paths? how to designate a movie/scene/movieClip/frame/level/etc?
Thanks for your help!
CreateEmptyMovieClip Simple Path Problem
Hi there,
I was recently introduced to the createEmptyMovieClip action, and though it is really cool, I am not sure how to link my text to the .swf file that is being instructed to load within the newly created clip. I am sure it is a path problem, but I have been wrong many times before. I am just learning.
What i have done is constructed a main movie that contains my navbar etc. When a button is selected, the following code refers to a function which provides a drop down menu. On the drop down menu, there are three additional buttons that one can use. The script on one of the button is as follows:
on (release) {
_root.dropDownMenu("about");
_root.createEmptyMovieClip("infoPage_mc", _root.getNextHighestDepth());
_root.infoPage_mc.loadMovie("hello.swf");
_root.infoPage_mc._y = 50;
_root.infoPage_mc._x = 0;
//loadMovie("hello.swf", "_root.about_movie");
}
It works beautifully, except in the .swf file that opens, the text can't find the clip because I am not sure how to direct it to the movie.
Here is the code that is placed in my movie containing my dynamic text (text loading from a .txt file.
var upscroll = 0;
var downscroll = 0;
loadVariables("txt_files/who_we_are.txt", "_root.textmovie");
Well there you have it. I never know if I explain enough of my headache to help someone viewing my problem, but I hope it works.
I am currently working on reading ActionScript for Flash MX 2004, and hope to learn a ton of stuff so I don't have to trouble you with my lame problems.
Later,
Greg
ps. thanks in advnace
Extremely Simple Path Problem?
I have been pulling my hair out over this for hours now. I have a banner rotation script that works perfectly fine when you reference it directly:
http://www.dklphoto.com/temp/jump/banner.swf
I am trying to include it in an html file that is one directory above the file and it doesn't work.
http://www.dklphoto.com/temp/index.htm
WHAT am I doing wrong? I have tried different paths, and nothing works....
Simple Parent Path Question
Ok, I've built a universal horizontal/vertical controller/scroller/thumb component, I drag it onto a movieclip and it gets the rect of the parent movieclip just fine with this reference:
pRect = this._parent.getRect();
but when I try to get the _totalFrames of the parent, it gives me the total frames of the parent movieclip in the timeline (1), not the total frames of the underlying movie clip (120). This doesn't make sense to me. If I have a script associated with the instance of the parent movieclip (in the timeline of the movieclip's instance, like so:
onClipEvent(load) {
trace(_totalFrames);
}
it gives me the correct total frames. It also works if I reference the underlying movie clip by name like so:
trace(this._parent.myClip._totalFrames);
where I have explicitly named the underlying clip instance ("myClip"). How do I reference the properties of the underlying instance of the parent clip without needing to know its name? (I've already tried "this._parent.instance0._totalFrames").
Simple String To Path Question
Hey, I really feel stupid for not being able to get this to work.
Im trying to store an instance name in a variable and use the variable in the path. Basically, storing test + 2 in testinc and then use testinc as part of the dot path.
Code:
var checkTest:Number = 2;
var testinc:String = "test" + checkTest;
trace (testinc);
page_shell.nextButton.addEventListener(MouseEvent.CLICK , nextClick);
function nextClick(evt:MouseEvent):void {
page_shell.[testinc].alpha = 1;
Can some help me out as to why this doesn't work?
Simple Random Movie Loader, Help Me On The Right Path Please
hey all, thanks or the click
ok so here is my problem, my webforums wont allow javascripts to run in the signatures (well duh) so I have a collection of small 120x50px movies, and I want one to load random on each page thats open. the files are generated swish files so you can randomize from them. I figured a small flash movie that loaded them in randomly would work as well?
ideas? thoughts? suggestions?
thanks everyone, best support for flash on the web is here at fk!
-mYles
[F8] Simple Trig Animation Question Of Elements Moving Along A Curved Path
For the life of me I can not figure out the math for this.
I have X amount of elements animating from top to bottom. Actionscript is controlling the tweens.
However the elements need to flow top to bottom on a curved arc. Almost a full half moon. I know the radius of the arc I want is 300px however Im stumped trying to dynamically figure out the plotting X and Y cords.
THANXS!
Variable Take On Content Of A Root Variable And Not Its Path - Simple Please Help
Hi there ok my brain has died and fallen off somewhere , what i am trying to do is this:
l=0
l++
_root.advert= "_root.var" + l ;
then i have a text box on stage , dynamic, etc var: _root.advert
, vars are stored in a text file , vars are called, var1, var2 etc , text box needs to display variable contents, but at the moment it just says "_root.var1" etc and not the content s of var1 this is very simple problem but my brains dead please help.
-arran
Using Eval Function And Variable In A Path (target Path)
Hello,
I have to reprogram some of my website and it calls to conjugate strings in a way that's beyond my understanding. Please help me with some suggestions. Kind regards.
the original code is:
code:
if (_global.useCount<10) {
//hide
var diff = 10-_global.useCount;
for (diff; diff>0; diff--) {
eval(String(11-diff))._visible = false;
}
}
There are buttons named 1 to 10 and this turns off the ones that are not used. Now I want to nest those buttons in subclip "buttonsRow", instead of having them on main timeline. How do I rewrite that code to make it work with new path?
I have already tried the "associative array" method, but it don't really know how to pack the whole eval function in there. I've tried many combinations, like:
code:
this.buttonRow[eval(String(11-diff))]_visible = false;
//or
this.buttonRow["eval(String(11-diff))"]_visible = false;
//or
buttonRow[eval(String(11-diff))]._visible = false;
//or
buttonRow["eval(String(11-diff))"]._visible = false;
//or
buttonRow[eval(11-diff)]._visible = false;
// or
buttonRow[8]._visible = false;
//the last one at least turns off button 8, lol
Some of those return syntax error and some just don't work. Anyone have any ideas? Thank you again.
Cannot Export An Avi Of Motion Along A Path When Path Is Specified With Action Script
Hello!
I have the following problem: I am using Flash 8 Professional to produce a series of avi files showing the motion of a dot along different paths. Whenever I use the drawing tools to draw the path everything is all right: I can export both a swf and an avi file showing the motion. The problems start when I use action acript to specify the path: then a swf can be exported, but not an avi file (Flash acts as if it is exporting but the avi file produced shows only a stationary dot). Can anybody help me?
_root.path="http://www.sitename.com/path/FlashSite/"; Script Issue While Online
Hi there,
I inserted _root.path="http://www.sitename.com/path/FlashSite/"; in the beginning of my action script (2.0). This script accessing contents from an access database, which is working fine, when I tested from my local system folder. But no content from database is displaying while it tested from my localserver (127.0.0.1/path/FlashSite) or from online server.
From a search I found it might be the issue with "Network Access Warning". Is there any other reason? If this is the reason, then how can I resolve it?
For example, how should I replace this -
setTimeout( function(){ _root.content01.content02.gotoAndStop("cont_a");}, 1000 );
Thanks in advance
Shine
Variable Path Name --> Path=_root
instName="inst1";
path="_root";
Element.prototype.setVisible = function(){
[path+"."+instName]._visible=true;
}
I am trying to build a variable path to an instance. Normally I would do something like this[var]._x, but this doesn't work with _root.
Any ideas?
_root.path="http://www.sitename.com/path/FlashSite/"; Problem While Online
Hi there,
I inserted _root.path="http://www.sitename.com/path/FlashSite/"; in the beginning of my action script (2.0). This script accessing contents from an access database, which is working fine, when I tested from my local system folder. But no content from database is displaying while it tested from my localserver (127.0.0.1/path/FlashSite) or from online server.
From a search I found it might be the issue with "Network Access Warning". Is there any other reason? If this is the reason, then how can I resolve it?
For example, how should I replace this -
setTimeout( function(){ _root.content01.content02.gotoAndStop("cont_a");}, 1000 );
Thanks in advance
Shine
Wrong Path Given, What Path To Use?, And Why?
Since the beginning of my Flash time, i never solved the 'giving path' problem in Action Script.
Most of the time my paths work, but sometimes they only work in an empty .fla file and not in my homepage.fla file with the code in another scene.
This time it's the code in the timeline (layer: actions, frame 2, scene: control_panel_sc, .fla file: homepage.fla):
stop();
ccbTime.addItem("tidfme2");
I tried naming the path to:
this.ccbTime.addItem("tidfme2");
super.ccbTime.addItem("tidfme2");
_root.ccbTime.addItem("tidfme2");
_parent.ccbTime.addItem("tidfme2");
_global.ccbTime.addItem("tidfme2");
_level.ccbTime.addItem("tidfme2");
_leven0.ccbTime.addItem("tidfme2");
this._root.ccbTime.addItem("tidfme2");
even adding the scene name to it:
this._root.control_panel_sc.ccbTime.addItem("tidfm e2");
etc. (thus the above paths again + scene name)
All paths above don't work, meaning, i can't see the value in a component ComboBox, though in an empty .fla file i do see this value.
Because you can't help me out without actually seeing the .fla file, i uploaded it:
(every link is the same file, so just choose one URL).
http://pcxpert.dyndns.org/homepage.fla
http://pcxpert.dyndns.org/homepage.zip
http://www.uploading.com/?get=YQ0G1UIC zip version
http://www.uploading.com/?get=VWE6WZKO .fla version
http://members.lycos.nl/johnwhello/homepage.fla
http://members.lycos.nl/johnwhello/homepage.zip
ftp://pcxperting:flash@pcxpert.dyndns.org/homepage.fla
ftp://pcxperting:flash@pcxpert.dyndns.org/homepage.zip
Also, you're authorized to change any file at ftp://pcxperting:flash@pcxpert.dyndns.org (the future pcxperting.com that is made by and made for pcxperts)
AS3 - Path Problem ? Var In Path Problem Not Working
hitrect1_mc.buttonMode = true;
hitrect2_mc.buttonMode = true;
hitrect3_mc.buttonMode = true;
hitrect4_mc.buttonMode = true;
hitrect1_mc.addEventListener(MouseEvent.CLICK , cl1);
hitrect2_mc.addEventListener(MouseEvent.CLICK , cl1);
hitrect3_mc.addEventListener(MouseEvent.CLICK , cl1);
hitrect4_mc.addEventListener(MouseEvent.CLICK , cl1);
function cl1 (e:MouseEvent):void{
xa=e.currentTarget.name.charAt(7);
for (i=1;i<=xa;i++){
targets = "bar"+String(i)+"s_mc";
trace (targets);
soundrect_mc.targets.gotoAndStop(2);
}
well it traces bar1s_mc if it's exact as the code.
if i remove soundrect_mc.targets.gotoAndStop(2); it traces all targets.all 4 of them.How do i make flash recognize "targets" as a path to a movie clip ?
LoadMovie SIMPLE Question For Simple Minded Graphic Artist
OK! So this will be EASY EASY for all of you.
I need to load a seperate SWF file onto the stage on a level above the main swf.
the seperate SWF file is in the same folder as the original all located in the "flash" folder of the root directory.
How do I get th e outside SWF to load on top of the movie.
The original movie is called grid.swf the outside movie is called liquid-print.swf
If anyone can help me with giving me the code I'd appreciate it. I really am quite dense when it comes to coding.
Can You Help Me Fix Simple Javascript Code On Button Inside My Very Simple Component?
Flash MX 2004 (mac)
******************
Hi,
I have a custom component that consists of nothing more than two dynamic text feilds and a button. I want the button to open a popup window in the browser, and it does so using javascript (an extension i found).
I put the following function in the first (and only) frame of my actual component (and its also in the first frame of my entire movie, just in case):
callPopup = function() {
getURL(popup);
};
And then on the button in my component i have this:
on(press){
callPopup();
}
and then finally,there is a variable named 'popup' within my component (which would change in each instance) which is given a value in my test instance as :
"javascript:jspw3('../vwd_scripts/','popups/acroyoga.swf',',,0,Past%20Event,index,Past%20Event ,20,0,,0,450,550,0,0.001,0.001,,,1,0,,.0.0.');"
somewhere i am doing something wrong.. ..i am not sure if its the button code, or my link (variable 'popup') syntax. Or if its impossible to use javascript in this way.
I know my html page is set up correctly (correct info in the head of the page etc), since i am able to call the javascript from a regular html link (just for testings sake) which is on the same page as my swf.
Hmm..i hope i made some sense here.
I will be very gratefull for some help...i'm totally lost on this one...
thanks in advance
Cheska
[F8] Very Simple Question, Very Simple Answer, I Hope. (Flash 8, Collisions)
Alright, so I've got my ball that moves up and down; it has gravity too. There are two things I want to do:
1. I want it to 'jump' when the UP key is pressed, rather than just accumulatively move upward.
2. I only want gravity to be applied while the ball is in the air(In other words, I basically just don't want it falling through the floor; however, want the edges to be the collision, not the center, and I also still want to be able to jump afterwards.
Thanks for any help, I don't need an explanation, I can figure it out by looking at the code. I'm going to attach a basic file with what I already have, please add the coding to it, then send the file back. Thanks for any help, and I apologise if this is hard to understand, or if I sound any bit rude to be asking how to do something; I don't mean to.
Can You Help Me Fix Simple Javascript Code On Button Inside My Very Simple Component?
Flash MX 2004 (mac)
Hi,
I have a custom component that consists of nothing more than two dynamic text feilds and a button. I want the button to open a popup window in the browser, and it does so using javascript (an extension i found).
I put the following function in the first (and only) frame of my actual component (and its also in the first frame of my entire movie, just in case):
callPopup = function() {
getURL(popup);
};
And then on the button in my component i have this:
on(press){
callPopup();
}
and then finally,there is a variable named 'popup' within my component (which would change in each instance) which is given a value in my test instance as :
"javascript:jspw3('../vwd_scripts/','popups/acroyoga.swf',',,0,Past%20Event,index,Past%20Event ,20,0,,0,450,550,0,0.001,0.001,,,1,0,,.0.0.');"
somewhere i am doing something wrong.. ..i am not sure if its the button code, or my link (variable 'popup') syntax. Or if its impossible to use javascript in this way.
I know my html page is set up correctly (correct info in the head of the page etc), since i am able to call the javascript from a regular html link (just for testings sake) which is on the same page as my swf.
Hmm..i hope i made some sense here.
I will be very gratefull for some help...i'm totally lost on this one...
thanks in advance
Cheska
Simple Problem. Simple Answer? Arranging Windows W/flash
SIMPLE problem. | SIMPLE answer?
We're trying to have a Full screen CD presentation in flash that plays .avi's in windows media player, & opens up url's in a web-browser. The problem is the URLs AND the .AVIs show up underneath the flash, is there a way to have them open on top of the presentation?
Thank you.
Random Tweens - Simple Question, Simple Answer?
Hello, I have one swf with a few different motion tweens inside their own movie clips. I want to write some code to play only one of the tweens at random. I know how to use setInterval to get the process to repeat with a delay. But I just want a different/random tween to play with each repeat. I hope that makes sense.
I imagine this must be easy, but I'm having a tough time getting it to work. Random tweens, somebody please help.
HELP SIMPLE, SIMPLE XML-FLASH Load Into Movie Clip
This is so stupid, my first dive into XML, with a company project - a tutorial/training piece which will require mjultiple screens with questions, etc.
Anwyay- I can get the XML loaded into the root, and it works pefectly, but I'd like to put things INTO a movie clip, so that each new screen or slide is just he movie clip advancing.
How the HELL do I target the movie clip? I even tried setting a NEW variable in teh main timeline once the XML was loaded, but the best I get is not the value from the XML, but the path (e.g. "level0title1")
Any help? I imagine it's a really stupid, easy question, but I can't find anythign ANYWHERE to answer it.
Simple Problem Neeeds Simple Answer
hey i figured one of u geniuses here could help me figure this out much faster than me fiddling around so here goes.
All I'm trying to do is have a button (which is loaded in an MC in _level6) allow the user to switch between languages on the website. To do this I figured all I would do is have it 2 scenes...one in English and the other in Chinese. When the user clicked the toggle button I would have it go to the current frame in _level0 but switch to Chinese scene.
Get it? basically i want it to switch between frames but remain on the same frame number. Here is the last piece of code I tried using, but nothing seems to work (this code is connected to the release of the toggle button)
Code:
_level0.gotoandplay("Chinese", _level0._currentframe)
Anybody got any idea what i need to do??
Thanks for your help!
Brad
Simple Question, Probable Simple Answer
still in my quest for new flash knowledge and being a "noobie" in the world of flash i would like help.
whats the easiest way to create a Button that upon rollover creates a text discription in a text box. just so i can give a description of what the button is going to lead to....
ohh and i will have multiple bittons on 1 frame and 1 designated box for all descriptions
thanx in advance
Simple Button, Needs Simple Action Script
Hi there,
I have made button in flahs mx. The over state of this button contains a short movie clip. My prblem is that I would like the button to remain on the down state on release (ie. once the user has released the mous button)instead of just going back to the over state as it does at present. Ideally I would like the button to go back to the up state on a second click.
I have pulled most of my hair out trying to put together the right bits of action script that would help me do this but to no avail, and having no time to learn action script properly I don't think I'll get there anytime soon on my own. Can anyone help me, pretty, pretty please ~?
Simple Question - Simple Answer FLASH MX
hi you good people out there. hope you could help me too. using flash mx, not beyond beginner yet.
about finishing my homepage with it. one problem is there:
i have a premade flash and changed graphics, etc. all no problem, the menu is included as well - i have changed the text of the 9 menus already, works fine - only when i use the preview - the original text appears when going over with the mouse... i changed the text visible to me - but cannot locate and change the text for the mouse over.
for instance the first two of the menu named
start
gallery
i changed it to
home
pictures
in the prview it show again
start
gallery
upon mouseover.
so i need to locate where to change also that hidden text (only active upon mouseover) to the same word.
if anyone of you could help me - i would be going into learning faster and finally getting my homepage up and running. if needed please e-mail me at
harton@harton.at
thank you so much!
....................I have uploaded a screenshot of it - clearly you can see, I changed the text yet have to located the original text below of it (?) and write the same text so that it shows up correctly upon mouseover.....
Simple, Simple... Input Field Question
OK, I have two input text fields, one is var x1 and another is var x2
onRelease I`m trying to use this code
score = Math.sqrt (x1+1) - Math.sqrt (x2)
It`s not working, check out attached fla file
Thanks folks
Simple Question *(I Hope) From A Simple Newbie...
Hi All... well, since this is my first post, I'll be cordial by saying hey and how are ya and all that later (sorry) but I'm in a bit of a pickle, or at least a cucumber that's been sweatting his luck for a while. I'm trying to create a news ticker that autoscrolls events accross the bottom of a movie, and allows users to click the text to take them to the appropriate page / site / picture or what ever (just need the link. I'm running into issues with the xml connector loading data dynamicly, I can get the file loaded, but I can't move it accross the screen. Basicaly, I'm looking for a basic news ticker tut or else the appropriate google keywords. Anyone? Anyone? Bueler? Please?
Thanks in advance.
Rick
Path
hi all,
i have an mc(1) on the main timeline and another mc(2) inside mc(1); what would the path be to control mc(2) from within mc(1)? i tried things like:
mc1 and mc2 = instance names of mc(1) and mc(2)
_root.mc1.mc2.gotoAndPlay(2);
or simply
mc2.gotoAndPlay(2);
none of these work;
i appreciate any help here.
thx
Path?
Ok, I've been trying this for hours now...still can't get it working...
Let's suppose I have a holder MC placed in _root.othermc.HolderMC and now I'm loading an external swf (my.swf, located on a different domain than Holder MC) into this Holder. What do the LOADED and the TOTAL vars below have to look like ?!?!?
Holder.loadMovie("http://www.whatever.com/my.swf");
Holder._x = 0;
Holder._y = 0;
this.onEnterFrame = function() {
LOADED = Holder.getBytesLoaded();
TOTAL = Holder.getBytesTotal();
PERC = LOADED/TOTAL*100;
Please.....anyone...
[Edited by Natsurfer on 08-09-2002 at 03:28 PM]
Path? ...please Help
Hi all,
Let's assume you have a scroll pane and scroll content is MC1.
What would be the path to that MC1??
_root.ScrollPaneInstanceName ??
Thanks
Natsurfer
Path
Hello again .. :-)
I am having trouble with loading and unloading movies.
this is my setup:
Mastermovie: _root.createEmptyMovieClip("container", 10);
loadMovie("pan_svaneke1.swf", "container");
container._x = 30 ;
container._y = 40 ;
* Container
- pan_svaneke1.swf
* dragcontrol
* picture
* image
In the image clip I have a botton
and now I want to unload pan_svaneke1.swf and replace/load pan_svaneke2.swf ....and so on But how?
Path To CD
Does anyone know how to create a dynamic path to a users cd player? I am working on a site that all the flash, images and sound files will be distributed on a cd and called from a html page.
Help Path?
sometimes I have the hardest time understanding the parent-child relationship. OK, heres what i got. ive got 4 buttons on my main timeline, each with a drop down menu with three buttons. (now these are all called with movie clips by functions.)
now I need to (attachMovie) an effect on the rollover buttons from the drop down menu. follow?
=============================================
\ DropMenuMC is the name of the MC that triggers when the user rolls over one of the main 4 buttons. negative (resides in DropMenuMC)and is the instance name of the MC/button
that needs to be rolled over to get the effect (DMfxID the export name, DMfx the instance name).
=============================================
negative.onMouseUp = function() {
_root.attachMovie("DMfxID","DMfx",6);
_root.DMfx._x = negative._x;
_root.DMfx._y = negative._y;
}
=============================================
i set the depth to 6 (because its just higher than the last depth that was set)
I have this action placed on the first frame of DropMenuMC. i have tried it on the main timeline and have tried several variations of a target path to get it to work. any inkling of an understanding thrown my way will be greatly appreciated - thanks.
geoff
Path From Php
Hi guys,
I would like to know one thing. I have an external movie called register.swf that fits in the middle of my index page. I have created a form in php called contact.php. This form opens in a new window. It is a pop-up window, in fact. When the person has finished to fill in the form, he or she presses the send button. By doing this, it calls an other php file called email3.php. Now, this php file meant to send all the information to my email address. However, I am using one line at the end and I don't know what to call to add the final touch of my message: Your request has been sent. Thank you!
Here is the code I am using in flash: echo "_root.input.EmailStatus=Complete - Your mail has been sent";
php?>
Let me comment: _root should be where all my external movies are going. input is the flash layer where my variable name called: EmailStatus is located. Now, is it the right path? It is all I am asking.
Thank you,
|