Quick Easy Question About Target
I have a menu loading a new swf file into an empty container on the main stage
on (release) {
loadMovie("pm_cnt_publishing.swf", mc_content);
}
Now i need a link inside pm_cnt_publishing.swf to load a different swf file into the "mc_content" movie container located in the main flash file.
Thanks
FlashKit > Flash Help > Flash ActionScript
Posted on: 01-19-2004, 05:11 PM
View Complete Forum Thread with Replies
Sponsored Links:
Easy Q: Target Not Found: Target="downtrigger"
I have an MC thats called 'slider' that will slide around the main stage. When different buttons are pressed it will slide in to place and each place will have a dynamic text field that will scroll the appropriate text. When I test the movie the text is viewable but when I click the scroll arrows I get the following error:
Target not found: Target="downtrigger" Base="_level0.slider"
What I would like to know is where I place the
'_level0.slider' on my tell target script, which is as follows:
on (press) {
tellTarget ("downtrigger") {
gotoAndPlay(2);
}
}
on (release, releaseOutside) {
tellTarget ("downtrigger") {
gotoAndStop(1);
}
}
If anyone is interested in looking at the .fla let me know and I can email it. Much appreciated, by the way I have around 2 weeks to get this project finished!
View Replies !
View Related
Quick And Easy
What is the action script to open a .gif in a popup window? The popup should be the same size as the .gif. I've done this with html pages but can't remember the script to call a .gif or .jpeg. I know I don't have to set up a html I can call the image by name. Thanks all...
View Replies !
View Related
Quick And Easy Help.
I've stumbled upon a problem for my Flash project for school. It is probably a no brainer for most of you, so any help would be greatly appreciated. Here it goes. I have a button when released must play a movie (called Section1) that starts on the second frame (because the first frame has a stop action). The code I've tried is as follows:
on release(){
_root.Section1.gotoAndPlay(2);
}
Is this right? Doesn't work so something must be wrong.
Thank you
View Replies !
View Related
Quick N Easy?
Hey all....I am sure this is very easy to do but have never known this. How do you control the main movie from a button inside a symbol - such as a graphic or a MC?
thanks...
a.
View Replies !
View Related
Quick, And Probably Easy Help.
So I am trying to import in XML and this is working fine, But once in flash I need to reference this variable in a later script. Here is what I got.
function loadXML(loaded) {
if (loaded) {
/////this is the variable, which is working, it pulls the info from the xml document properly.
var node1 = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
////another variable, etc...
var node2 = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
/////when traced it outputs the proper value.
trace(node1);
}}
////////does not work here though.
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("co.xml");
var latmin = 37;
var latmax = 41;
var lonmin = -109;
var lonmax = -102;
this.geoPlotter_gp.setRange(latmin, latmax, lonmin, lonmax);
this.geoPlotter_gp.setNodeSymbol("geoPloterNodeSym bol");
this.geoPlotter_gp.addNode(40.48, -107);
////////////////This is where I need to now use the variables defined above//////////////
this.geoPlotter_gp.addNode(node1);// Boulder
this.geoPlotter_gp.addNode(node2);// Denver
/////any ideas all? I am sure this is something simple...I am just overlooking something.
View Replies !
View Related
Quick And Easy One
Hello!
Just a quick question:
I have three dynamic text boxes with numbers in them and I want to get the total of these numbers. This is the code I've got:
var final_total = 0;
final_total = total1_complete+total2+total3;
total1_complete being the first box and so on . . .
But this doesn't give me the total is just adds the three numbers after each other! Where have I gone wrong ? ? ?
Many thanks
View Replies !
View Related
Quick N' Easy?
Ok, this should be quick and easy for someone!
How do I make a scene recognise a variable that is in a movie clip?
So, basically I have a movie clip looping that acts as a continuous counter. That movie clip (counter_mc) sits on my main scene. I want some action script on the scene to read and react to the variable within counter_mc.
Does that make sense?!
I look forward to the solution,
Mutley
View Replies !
View Related
Quick And Easy ?
I have seen alot online about people passing variables to flash using the <params> tag but once you do something like
Code:
<PARAM name=studentnumber value=143224264 >
how do you access that variable in FLASH? I have tried just using studentnumber as a variable but that seems not to pan out. I am sure i am missing something here any help would be great
View Replies !
View Related
Target Help - Easy One?
I'm trying to duplicate a design I currently have in html...
http://www.bleucube.com/journal/index.html
I want to create the calendar in flash and have a textbox with scroller on right. Two seperate movies. I have the textbox with scroller reading dynamically for a text file.
I would like to be able to click on the day in the calendar and have it tell the other movie what text file to load in the textbox.
So if I click on July 7 it tells the textbox movie to load 07.txt
Should be easy right?
-------------------
As a bonus = I want to figure out how to make a dynamic calendar so I that you can scroll back months without having to load extra calendars... currently each month I have to build a new calendar. So to make it more accurate... I would like to click july 7 2001 and have it load 07072001.txt in the textbox.
Much help would be so apperciated!!
View Replies !
View Related
Quick Easy Question Please Help
I will be using javascript to load a swf full screen. I am aware that it will stretch to the full screen by itself... but I want the text and everything to look sharp and crisp.
In your opinion... what is the best width and height to set your movie to (to maximize the image quality of the website)?
View Replies !
View Related
Really Easy Quick Question.
Okay.. I'm a n00b to start off with. Been playing with flash for only a couple of weeks now.
Anyways. I have a dynamic text box in a frame later in the movie. in the "Var:" Box I have "left_box_text"
In the first frame I have
"var left_text_box = "Some meaningless text here...";"
From the flash help files: "If you assign a variable to a text field, the text field displays the variable's value."
Now, why in bloody hell isn't it displaying any text? Have I got something wrong?
View Replies !
View Related
Quick And Easy Question
Hi:
I have an easy question.
I have a movie with a preloader scene and 2 additional scenes. I'm trying to display the current frame and the total frames in a particuar scene and am using this code.
onClipEvent (enterFrame) {
currentframe = _parent._currentframe-22;
totalframes = _parent._totalframes-22;
currentPage = " Page "+currentframe+" of "+totalframes;
}
It works fine when i have just that scene. However now that I have added the preloader the displayed total and current frames get all messed up.
Thanks for your help.
Uday
View Replies !
View Related
Quick But Not Easy Problem.
I've got one array, and each value in the array is an object.
Each object, however, starts out as a string with "^" seperating each value. the first value is a Name of a business.
I create the first array based on an ID number or iterating value, I create the second one based on the alphabetical listing of the Name
my array is called _root.businessInfo
I am using _root.businessInfo.sort(); to try and sort the values but it's not working and I can't figure out why.
Any ideas would be appreciated.
- jeremy
View Replies !
View Related
Help Quick With An Easy Problem
i'm not that good at actionscript.
i have a progress bar movie clip called 'progressbar', and i want to use _framesloaded and _totalframes to make it graudally increase as the movie loads. i've got many scenes in the movie. not sure what to do. what would the script be?
View Replies !
View Related
Quick Easy Question
I'm stumped and can't remember how to target a level's properties. I have
Code:
loadMovieNum("movie1.swf", "_level1");
loadMovieNum("movie2.swf", "_level2");
etc.
Say I want to place movie1.swf at 15,30. is it
Code:
_level1.movie1._x=15;
_level1.movie1._y=30;
or
_level1._x=15;
_level1._y=30;
Basically where i am stumped is that i can't remember what happens to the path when you loadMovieNum - does movie1.swf turn into _level1.movie1.properties or does it take the name of the highest level movie clips inside:
movie1.swf has 2 instances of a movie on its timeline - clip1 and clip2
Code:
_level1.movie1.clip1.properties;
or
_level1.clip1.properties;
hope this isnt too confusing.
Thanks in advance.
View Replies !
View Related
Quick And Easy Question...
in flash mx how do i get one pic to fade and turn into another pic? then i could get the pic to fade back to the original and have it loop. yeah im a n00b to flash, that's what im doing in this forum thanks guys.
View Replies !
View Related
Quick Easy Question...
I have a group of separate movie clips that I want a single button to start all of them and another button to stop all of them...how would I accomplish this? Sorry I know there's probably an easy answer to this, but I'm running out of time on a project...
View Replies !
View Related
Quick Question, Should Be Easy
im trying to make a new window popup from flash using javascript and it only works when i open the page from my computer, it doesnt work when i try to do it on the internet site for some reason... heres's the code i am using..
on (release) {
getURL("javascript:launchwin('http://free.deluxnetwork.com/~oxotek/ieflash.html' , 'newwindow' , 'toolbar=no,location=no,status=no,menubar=no,scrol lbars=auto,resizable=no,width=776,height=830')");
play();
}
heres whats in the page..
<SCRIPT LANGUAGE="JavaScript">
<!--
var newwin;
function launchwin(winurl,winname,winfeatures)
{
newwin = window.open(winurl,winname,winfeatures);
if(javascript_version > 1.0)
{
setTimeout('newwin.focus();',250);
}
}
//-->
</SCRIPT>
and heres my site http://oxotek.vze.com
thanks for the help in advance
View Replies !
View Related
Quick And Easy Question
How do you make this work? It's a movie that sends email to you and a courtesy email to them from php. I have downloaded the file package and it comes twith the FLA, SWF, and a PHP file.
I just need to know how to make it go to my email address and how to customize the "courtesy email" as well as where to upload the php file to.
http://www.flashkit.com/movies/Utili...4983/index.php
thanks... somebody probably can answer this in like 10 seconds, you guys are good
View Replies !
View Related
Quick, My Be Easy, Question
on here on this page, http://www.smooth-criminal.com how do they make that navigational bar? like how does the stuff pop up, and the words blink? And stuff? If possible can someone make me a demo?? Thanx. Tyrone.
View Replies !
View Related
Quick And Easy Question
Hey guys, been a while for me but here goes
A friend of mine is wondering how to create roll-off action for a button... ie, when the mouse rolls over a button a certain transition runs... how to do you program a transistion to the original point.
Like i said i'm sure this is easy it's just been a while for me... a bit rusty
View Replies !
View Related
A Quick & Easy Question ;)
Right umm , got round to finally editing all the component skins in MX 2004 as much hassle as it was , still decided to keep that over MX.
Anyhow onto the problem. This was mainly for scrollpane by the way - Bars edited , tracks edited all fine. However i cant find any symbol in the "Theme" library which relates to the White line & Glow effect surrounding the component.
Anyone know how to remove these ?
View Replies !
View Related
Quick And Easy Question
I have this right now...
if (rn != 1) { .....
But, I would like to specify two amounts for the condition. How would do this? Maybe something like this?...
if (rn != 1,3) { ......
That's just a shot in the dark. Any help is much appreciated. Thanks in advance.
b4s
View Replies !
View Related
Quick And Easy Question...
first, i apologize...i know I've seen a similar thread here, with a functional answer provided, but i've been searching the forum for a 1/2 hour with no luck finding it. (and i can't spare any more time right now...)
I simply need to know how i would execute a function x times and then stop. let's say x = 3 for the purposes of writing the script.
if you need a little more info.... i have a window that when loaded initially will randomly resize itself 3 times before arriving at it's final size and coordinates. The re-size would normally be executed by pressing a button, but i need it to happen on load.
any help, please? and again i apologize (but searching for "play something 3 times...etc didn't get me anywhere)
thanks in advance.
View Replies !
View Related
Quick And Easy? Remove Mc
hey guys...placed an mc on the stage. I would like to remove it. Tried mcName.removeMovieClip();- but it did not do the trick. Is this because i had to use attachMovie first? if so, is there a work around?
View Replies !
View Related
Quick Easy Advice
I am creating a quiz ap. I want to have about thirty questions. I want the comp to randomly pick 10 of the thirty. Then give them to the user one at a time. I want them to answer via an imput text field. If they hit the submit btn and the contents of the text field match a couple possible answers they get a correct and move to the next question. If the answer is wrong they get an incorrect and move to the next section. Could anyone point me in the right direction?
View Replies !
View Related
Quick Easy Question.....
Its getting late and my brain has completely given up on me can someone jus tell how to put target _blank into my actionscript so when user clicks on button it opens in new window.
here's an example of what i've got,
ActionScript Code:
on (release) {
getURL("forum.htm");
}
what would be the correct way to write for it to open in new window?
Thank you
View Replies !
View Related
Quick And Easy Question.
I read your great tutorial on how to load external .swf files. In your tutorial file you have three .swfs: Photos.swf, gallery.swf, and profile.swf. These are the .swfs that are loaded into the main one. I am ready to creat my own customizable flash interface that loads external swfs. Basically, I would like to know if I can use the basics of your tutorial to create my own menu. Per se, if I have a button called VIDEOS, then I basically have to change the actionscript to make it load that .swf. How would I go about doing this? Creating an instance for each button? Then modifying the action script to make sure it loads the correct movie.
Thanks in advance,
All the best.
Chester
View Replies !
View Related
Quick Easy Question
I am trying to load an external movie clip using "onEnterFrame"
I know the command to load it is "location.loadClip("gallery.swf")"
How do I put these two commands together so that when you enter the frame the external .swf is automatically loaded?
Thanks alot!
Michael
View Replies !
View Related
Quick, Hopefully Easy Question
preface: flash neophyte. bear with me.
anyway, im playing around making a small site and i seem to be ok with loading external movie files into the main one on command, but when i do, the features don't seem to work -- i have a quote generator in the external file and though the button to generate a new quote does roll over, it doesn't actually function in retrieving a new quote.
ps, in flash 8 actually.
Thanks
Jake
View Replies !
View Related
Quick Easy Question...
I have a flash document (website) i have made it has a circle Quater'd these 4 quaters are now buttons within a movieclip with a _rotation on it, now when someone clicks this button i want the circle to keep spinning until it gets to where the content will be the correct way round but how will i stop the _rotation???
View Replies !
View Related
Quick Easy Question
Hello Everyone,
I didn't know what to type to search for this question.
The issue i have is with text placement. I have two buttons almost identical except for text. When editing both buttons in Flash they show perfectly where how they should, however when i publish the flash the two buttons plots the text differently, one where it should be the other a few points higher.
I have made sure they are both on whole numbers.
Any Suggestions?
Thanks,
Martha
View Replies !
View Related
MC Target - Complicated Yet Quick Question
I'm trying to target an mc like this
////////////////////////////////////
this[gs_menu].but1.attachMovie("da","da",li_buttonLevel+li_butt onNum);
////////////////////////////////////
and this works fine.
What I really want is the but1 to be variable but when I try
////////////////////////////////////
i=1
var ls_but = "but"+i;
this[gs_menu+"."+ls_but].attachMovie("da","da",li_buttonLevel+li_buttonNum );
////////////////////////////////////
it FAILS.
How do I let the child portion of the mc be variable and still target it properly?
View Replies !
View Related
Quick Target Path Question.
Can someone tell me why this target path will not work.
Code:
on (rollOut) {
_root.arrowButton.homeArrow.gotoAndPlay("homeOut");
}
I have a button, which is the "arrowButton" and then on the rollover state I have a movie which is "homeArrow". Now I'm trying to play a frame lable inside the "homeArrow" movie from the main timeline where the button is located. I put the rollout so that when you come off of the button it will play that frame I have labled "homeOut". I should work but is not doing a thing. Any ideas? Thanks
View Replies !
View Related
Game Target Help: Quick Question
Hello all, I am trying to create a game and hit a snag... I have 2 targets for a crosshair, and I want it so that if target or target1 are hit 5 times, they either disappear or change to a dead graphic and are unclickable... Please HELP!?!?! Here is my code...
Attach Code
onClipEvent (mouseDown) {
//Fire Torpedo
this.torpedoparent.gotoAndPlay(2);
//If HS is over target, show effect
if (this.hotspot.hitTest(_root.target)) {
_root.target.gotoAndPlay(2);
//Add to the score
_root.score = _root.score+5;
//If they get enough points, goto win frame
if (_root.score == 25) {
_root.gotoAndStop("win");
}
}
//new target
if (this.hotspot.hitTest(_root.target1)) {
_root.target1.gotoAndPlay(2);
//Add to the score
_root.score = _root.score+5;
//If they get enough points, goto win frame
if (_root.score == 25) {
_root.gotoAndStop("win");
}
}
}
Edited: 05/21/2008 at 10:28:47 PM by jamocamac
View Replies !
View Related
|