Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Printing And Target Paths


I had a question about Target paths in Flash.

In my main movie I have a blank movie clip on the stage (the instance name for this blank clip is "screen") in which I load an external swf (scroller.swf) that has a scroll pane in it. "scroller.swf" loads another external swf into the scroll pane. Scroller.swf loads "content.swf" into the scrollpane. The content.swf contains some text and jpg's and is longer then the blank clip in the main movie, thus the need for a scroller.


So the hierchy is:


Code:
Main Movie (template.swf)
with blank clip: "screen"
|
------- scroller.swf
|
------------------------- content.swf

I want to print the text and images only, that is on "content.swf" with a print button that is located in the main movie stage.





Code:
On the button on the main movie I used:
on (release) {
if ($player != "") {
print("screen", "bframe");
}
}
But this obviously prints the movie clip "screen" and everything loaded inside of it. Thus I get the scroll bars on the side from "scroller.swf" as well as the text content in "content.swf"




If i use:

Code:
on (release) {
if ($player != "") {
print("content.swf", "bframe");
}
}
I get the whole stage of the main movie with all the buttons, the screen movie clip, and everything loaded inside of that. I'm not sure why this happens.



I'm guessing I need to include the main movie, the scoll swf and the content swf in the target path.
The problem is, I don't know the proper syntax for the target path.

Any help at all is appreciated.

Thanks,
Mike




FlashKit > Flash Help > Flash Newbies
Posted on: 09-23-2004, 12:20 PM


View Complete Forum Thread with Replies

Sponsored Links:

Target Paths?
Okay.. I am creating scroll bars.... but i need to know to to make a target path... so that it appears in the "insert target path" window... can someone please tell me how?

View Replies !    View Related
Target Paths..
what do i type in for target paths? i dont know what its asking for..

View Replies !    View Related
Target Paths Mix Up...
I've just started on my journey with Flash MX actionscripting...but seem to have stumbled at the 1st hurdle...after several days of trying and looking around for answers i am getting rather frustrated...

This is gonna be real simple i'm sure...I want to use a movie clip to control another movie clip, basically start it or stop it on the main timeline.

When one movie clip has finished playing another will start.There are quite alot of frames in each movie clip, so i wanted to avoid having a main timeline that was hundreds of frames long....

I'm looking at goto and targetpaths, but it's just not having it! Can anyone spot the obvious mistake??


cheers.....the lemon

View Replies !    View Related
Target Paths ?
frame 1 a button when clicked the play head will go n stop in frame 2
now frame 2 got loadMovieNum("blah_blah.swf",8);

now this loading blah_blah.swf got a button when clicked, the main movie's playhead should go to and stop in frame 1 fine ~

in loading movie's button i have given the path as on(press){
_parent.gotoAndStop(1);
}

perfect this logically works ~
but doesnt work when published why ?

View Replies !    View Related
Target Paths. Help[
Hi,

I'm trying to get my head around Target Paths.

I've basically got 3 buttons in this little movie (attached). Each button should play it's relevant movie only whilst clearing the screen of the other two movies. 'Biography' button plays 'Biog' instance and so on.

Cheers

Clueless Steve

View Replies !    View Related
Target Paths
Hi folks,

I found this sample file on Flashkit. I have coverted the whole thing as a movieclip of its own.

However because I have done this its effected the paths to the files. I have tried changing the _root. paths and renaming the movieclip but I am still having the issue. If that file is on the main timeline its fine. Can someone help me out please? what do I need to change in order for it to work within a movieclip?

Cheers!

View Replies !    View Related
Target Paths
Hi.

I've been searching around, reading tutorials, but I still can't get this right.

Excerpt of my movie:

Code:
Scene 1
- lydavpå (movie clip)
- lydav (button)

- jukebox (movie clip)
- boxe (movie clip)
I want to make the "boxe" movie clip go to frame 6 and stop when I press the "lydav" button.

I've tried this with no luck:
Code for "lydav" button.

Code:
on(release){
_root.jukebox.boxe.gotoAndStop(6);
}
I don't know what I'm doing wrong, because I've read several tutorials who all say this code is valid. I'm probably overlooking something.

I'm using Flash Professional 8.

I'd really appreciate som help here! Thanks a bunch!

View Replies !    View Related
Help With Target Paths
Hi people!

As you can see I am new to these forums, tho not to the site. Anyway, I recently started exploring how to make flash games. For my first project I chose a rather very easy concept game. You can play couple of levels here
http://www.swfupload.com/view/100380.htm

So... on to the point now.

In my libary, I have a movieclip called "level1" and in the timeline I have a movieclip called "taust".

This piece of code attaches "level1" from libary to "taust" on screen.

Code:
function levelspawn() {
_root.taust.attachMovie("level1","taust",1);
taust._x = xspawn;
taust._y = yspawn;
}
Inside "level1" there is a movieclip "exit" and inside "exit" is another "exit".
Now here is the code that is supposed to take the player to the next level.

Code:
function endLevel() {

if (_root.player.hitTest(_level0.taust.taust.exit.exit)) {
_root.gotoAndPlay("level2");
cleanUP();

}
}
I traced "exit" and got _level0.taust.taust.exit.exit
But it does not work. Both functions are located on the main frame.
Here is the main frame code so far:

Code:
stop();
//Declare variables
var lives:Number = 99;
var level:Number = 1;
var xspawn:Number = 722;
var yspawn:Number = 485;
var xplayer:Number = 242;
var yplayer:Number = 179;
var walkSpeed:Number = 3;
var score:Number = 0;

//spawn player
function playerspawn() {
attachMovie("player","player",2);
player._x = xplayer;
player._y = yplayer;
}
//create level
function levelspawn() {
_root.taust.attachMovie("level1","taust",1);
taust._x = xspawn;
taust._y = yspawn;
}

//delete level
function cleanUP() {
removeMovieClip("taust");
removeMovieClip("player");
}
playerspawn();
levelspawn();

function endLevel() {

if (_root.player.hitTest(this.taust.exit.exit)) {
_root.gotoAndPlay("level2");
cleanUP();

}
}
endLevel();

taust.onEnterFrame = function() {


if (Key.isDown(Key.UP)) {


taust._y += walkSpeed;

}
if (Key.isDown(key.RIGHT)) {


taust._x -= walkSpeed;

}
if (Key.isDown(key.LEFT)) {


taust._x += walkSpeed;

}
if (Key.isDown(key.DOWN)) {


taust._y -= walkSpeed;

}
};
//Any ideas why the path to exit does not work?Or have I written something wrong somewhere else?:|

//Eldest

View Replies !    View Related
Help With Target Paths?
Hey, I was wondering if anyone could help me with a problem I'm having with writing correct target paths. I wrote a function that rotates a mc to point at the mouse, but I would like to change it so that the mc points towards another mc after a collision.

I imagine that the script would look something like this:

if (this.hitTest(someDuplicate)){
setProperty (this, targetName, someDuplicate._name)}
this.targetx = _root."targetName"._x
this.targety = _root."targetName"._y

//this.targetx,y are then used to calculate the rotation.

The problem I have is that all of the movieclips in my movie are duplicates with the names "newCircle"+i or "newRipple"+i, and so I don't know how to properly refer to the duplicate or how to code this.
Does anyone know how to help?
Does anyone know what I'm talking about?

View Replies !    View Related
Help With Target Paths?
Hey, I was wondering if anyone could help me with a problem I'm having with writing correct target paths. I wrote a function that rotates a mc to point at the mouse, but I would like to change it so that the mc points towards another mc after a collision.

I imagine that the script would look something like this:

if (this.hitTest(someDuplicate)){
setProperty (this, targetName, someDuplicate._name)}
this.targetx = _root."targetName"._x
this.targety = _root."targetName"._y

//this.targetx,y are then used to calculate the rotation.

The problem I have is that all of the movieclips in my movie are duplicates with the names "newCircle"+i or "newRipple"+i, and so I don't know how to properly refer to the duplicate or how to code this.
Does anyone know how to help?
Does anyone know what I'm talking about?

View Replies !    View Related
Target Paths, Tell Targets And With? Help...please?
I have the Flash 5 bible and I have read through the whole damn section on interactivity and MC's. All i want to do is connect my main movie with different MC's. Nope, do ya think i can? I'm pretty good with understanding and using actionscript, but nothing i try seems to work. I keep getting an error like: Target not found: Target="service" Base="_level0". Someone please tell me if there is even a tutorial on this.
(Already found this one) - still confused
http://www.flashkit.com/tutorials/Ti...87/index.shtml

View Replies !    View Related
Target Paths Between Scenes...?
here it goes: i want to make a a button contained in one movieclip take me to a certain frame of another movieclip that is placed in another scene... i just cant figure it out...

i think the problem is the targeted mc being placed on another scene... i wrote this actionscript:

on (release) {
_root.movieclipname.gotoAndPlay("scene name", "frame label");
}

but it wont work...so if anybody has been through this and wants to help me out, i will really appreciate it.

thanks a lot...later.

View Replies !    View Related
Target Paths Question
on (release) {_level0.gotoAndPlay("whatsNew")
}

This code is from a button that is inside a .swf that is loaded into my main .swf. And the button needs to jump to "whatsNew" on the main .swfs timeline. Did I do somthing wrong?

View Replies !    View Related
Target Paths Argh
I am having some problems with my target paths, and the Flash Mx help really sucks at explaining it.


My hierarchy:

Root
----Child
---------Sub Child 1
---------Sub Child 2

Ok so that's the hierarchy, now for how the instances are set up.

Root - has an instance of Child

Child - has one instance of Child 1 and one instance of Child 2


Problem: I need to know the syntax for the following:

A button in Child 1's movie to tell the instance of Child 2 (within Child) to gotoandplay a certain frame label.

View Replies !    View Related
AS2 MX Prof, Odd Target Paths.
Solved: My appologies, i had not realised the scope changes in event handlers depends on which control class they are on. I'll leave this here just incase anyone has the same problem, but basically you have to reference the controls from the controls scope.


Thank you


------------------------


I have the following (well, not really, but this much is important) code in frame 1 of a Screen. The code runs when the event it is on fires, however it does not change the properties on the control i reference.

I have tried giving various paths, and relative and root path, but none seem to work. :s

this.btnLogin.onRelease = function()
{
//This code IS executed, but it cant find the referenced controls.
this.btnLogin.enabled = false; //< Cant find btnLogin
this.mtdAuthenticate.trigger(); //< Cant find mtdAuthenticate
};

Structure is like so:

--_root
-|- application
--|- frmLogin
---|- btnLogin
---|- mtdAuthenticate

I've tried "_root.application.frmLogin.btnLogin" but that doesnt work either! its extremly odd.. can anyone think of anything i might be forgetting?

EDIT::: Something that is VERY strange!
I set the event handler with the relative path "this.btnLogin.onRelease"! but it cant find the btnLogin again using the same path?? :S!

View Replies !    View Related
Dynamic Target Paths
aight guys,
Im wondering if it is possible to change the properties of a jpg file loaded into a movieclip. Thing is i know i can change the properties of the movie clip the jpg is sitting in but im unsure of the method to change the propeties of items dynamically loaded into a movieclip without knowing the name of the jpg loaded until the flash is run (ideally i need a variable in the target path which would hold the name of the loaded jpg)....any ideas?
Cheers

View Replies !    View Related
Trouble With Target Paths (?)
I can't seem to get it right. I am sure someone take a look and quickly tell me what i'm doing wrong. The Idea is simply to loop through a multi dimensional array, and turn visibility off for three groups (the sub arrays) of button mc's ...

Originally I had the groups of button mc's contained in their own mc's, and it was easy to access visibilty, but then i couldn't access their button functionality anymore. I'm missing some basic communication protocols.

I'd be grateful if someone could take a look. Thanks.

// array of subNav button arraysvar sN_grps_array:Array = [sN_grp0_array, sN_grp1_array, sN_grp2_array];

// subNav architecture buttons array
var sN_grp0_array:Array = [sN_arc0, sN_arc1, sN_arc2, sN_arc3, sN_arc4, sN_arc5, sN_arc6, sN_arc7, sN_arc8, sN_arc9, sN_arc10];

// subNav design buttons arrayvar sN_grp1_array:Array = [sN_des0, sN_des1, sN_des2, sN_des3, sN_des4];

// subNav theArch buttons arrayvar sN_grp2_array:Array = [sN_the0, sN_the1, sN_the2, sN_the3];

// mainNav buttons arrayvar mN_btns_array:Array = [mN_btn0, mN_btn1, mN_btn2];

// office element animations arrayvar office_array:Array = [office0, office1, office2];
// hides all subNav menusfunction sN_hide() {

// sets h as number of arrays in arrayfor (h = 0; h < sN_grps_array.length; h++) {
for (i = 0; i < sN_grps_array[h].length; i++) {
sN_grps_array[h][i]._visible = false;
}
}
}
// hides all office animation elementsfunction office_hide() {for(var i:String in office_array) {this.office_array[i]._visible = false;
}
}
// hides subNav on loadsN_hide();

View Replies !    View Related
[F8] Dynamic Target Paths.
Ok here is my problem. I have movieclips that share the exact same name save the last character which is a number. I have a variable that is assigned a number based on where in the timeline the move is. My set up looks something like this:

var which_mc = 1;
var tester1 = 0; (just a variable to tell me the result of my string and eval functions).

My movieclips:
_root.container_mc.mc_1
_root.container_mc.mc_2
_root.container_mc.mc_3
_root.container_mc.mc_4
_root.container_mc.mc_5

Now I'm trying to set the properties of these movie clips with a single bit of code however using the String() and eval() functions don't seem be recognized as paths.

What I've tried:


Code:
enlargeImage = eval("_root.container_mc.mc"+_root.which_mc);
_root.tester1 = enlargeImage._yscale;
enlargeImage._yscale = enlargeImage._yscale + 1.4;
unfortunaly the var tester1 returns the value "undefined".

When I use the String command. I get the entire entry:
"_root.container_mc.mc1" however if I try to get the _yscale value I get a return of "undefined".

Aka something like this:

Code:
enlargerImage = String("_root.container_mc.mc"+_root.which_mc);
_root.tester1 = enlargerImage._yscale;
enlargerImage._yscale = enlargerImage._yscale +1.4;
I've trined using the getProperty and setProperty commands as well without any luck.


Code:
getProperty(enlargerImage, _y);
//returns "undefined"
getProperty(eval("_root.container_mc.mc"+_root.which_mc), _y);
//also returns "undefined"
So my question is... how do I set a movie clip path dynamiclly and inturn change it's properties?

View Replies !    View Related
// Confused : Target Paths
Hi..

I have had a look through some of the 'relevant' threads for targeting problems, but none seem to give me an answer to my problem, which is...

I'm creating an interface (and perhaps making it harder for myself than necessary) where the initial swf (say container.swf) has a scene for each section of the application. All actionScript is stored externally, and the relevant files loaded when necessary, and into the relevant scene of container.swf (ie all AS is in the _root of container.swf). So for example, in frame #1 of scene #1 of container.swf, two AS files are loaded: one loads the interface, and the other the navigation controls. Basically, I'm tryng to keep everything in a logical place and the filesize to a minimum.

interface AS:

- This creates 3 EmptyMovieClips, one for the title, one for the background, and one for the navigation. Each has the relevant swf file loaded into it, and
the interface appears as it should. The navigation swf loads to _level0.navigation_mc, and each of the buttons within it output that path as their parent via trace().

navigationControl AS:

- Each button is at _level0.navigation_mc as stated above, and the AS is loaded into the _root of container.swf. An example of the onRelease function

being called for a button is:


Code:
// working in _root of container.swf
_level0.navigation_mc.first_btn.onRelease = function() {
// intended to gotoAndPlay the next scene of container.swf
// need to add function to gotoAndPlay
trace("
first_btn onRelease function is working");
};
... no worky.

But, if i put the following code in the swf for the navigation (which I'm trying to avoid to keep the AS centralised) it works:


Code:
// working in _level0.navigation_mc
this.first_btn.onRelease = function() {
// intended to gotoAndPlay the next scene of container.swf
// need to add function to gotoAndPlay
trace("
first_btn onRelease function is working");
};
A brief example overview of the structure is as follows:

Code:
container.swf
|-createEmptyMovieClip("title_mc", 1)--> title_mc
|
|-createEmptyMovieClip("interface_mc", 2)--> interface_mc
|
|-createEmptyMovieClip("navigation_mc", 3)
|--> navigation_mc
|_loadMovie("navigation.swf", navigation_mc)

navigation.swf
|-first_btn (etc)
This is only the second time that I've created an application in Flash, so feel free to point out anything I'm doing wrong. If anyone can help, it would be much appreciated.

View Replies !    View Related
Target Paths In External SWF's?
Hi, Im having problems with a flash based website that I am creating. It is essentially a gallery, using a shell file for all the navigation with external .swf's being loaded in for each image set to keep the overall file size low. I have it all working fine except for one weird problem, within the external .swf's there is another layer of navigation to move forwards and backwards through the main timeline.. it works fine as an individual .swf but when loaded inside the shell interface none of the buttons work.

The only thing I can think of is that the paths are wrong when it is loaded into another file, for example: does "on (release) { _root.play();" on a button inside the external swf refer to the root of the external file or the root of the shell swf itself? What path am i suposed ot use to refer to items on the main timeline of an external .swf file?

I may not have explained this very clearly, but I would be extremely greatful for any insights, thanks for your time

View Replies !    View Related
Multiple Scenes And Target Paths
Heya,

not sure if this is proper forum for this, but i'll give it a shot anyways. i've got a project that has alot of actionscript and looping (gotoAndStop type stuff). now, it was working great until i tried to add an additional scene and have it play prior to my first scene (a preloader). now it appears that the second scene has just been added to the front of the first scene, and if i do a "gotoAndStop" command referencing the frame number, it is not going to the proper frame. it is as if i have another 3 frames (the size of the pre-loader scene) at the front of my timeline.

can anyone confirm this for me? is there any work arounds, or do i simply have to go back and account for the 3 extra frames?

thanks in advance

PoTs

View Replies !    View Related
Variable Names As Target Paths
I'm trying to develop a dynamic system that will create a number of movie clips based on how many files are in a folder. I want to go through some sort of loop, doesn't matter which kind, and assign unique names to movie clips.

Something like:
mcLoader.loadClip("Pics" + "/" + i + ".png", thumb_load+i);

But "thumb_load+i" doesn't work, and I can't refer to it as thumb_load+i._x,
etc...

I know there is a way to do this but I'm just not finding it, can someone plz help.

I need to be able to add a number to an instance name and be able to call it...don't know how to explain it any further. Hopefully someone will understand.

Thanks!

View Replies !    View Related
Target Paths Between HTML Frames
I have movieA in frameA of an HTML page and want it to give instructions to movieB in FrameB. I have found lots of info on target paths within a movie but can't find anything about targetting between HTML frames. Any help on this would be much appreciated.

View Replies !    View Related
Problem Using Variables To Name Target Paths
I hope this makes sense.
I have a button _level0.Map.Map.H506.H50601

on (release) {
_root.lotePath =targetPath(this);
_root.loteRelease();
}

The function is:
function loteRelease() {
trace([_root.thisPath].lotename);
}

It is not working





























Edited: 06/18/2008 at 09:58:42 AM by Alfarovive

View Replies !    View Related
HTML Links And Target Paths
I have a scrolling text box, I need to be able to continually add links to this box. They need to link to FRAMES within FLASH. I have used this information inside of the ACTIONS box on an empty layer: (below is the example I used it works as a link to an outside webpage, but I want to link to an actual frame within the FLASH movie.)

var URL:String ="

View Replies !    View Related
Modular AS And Target Paths Best Practice
I'm re-writing a movie so that elements of it are modular movieclips, so that should I wish to re-use them, I can simply copy onto the root time-line. What should I watch out for regarding my paths in the modular clips? i.e. should I always ensure they are relative or absolute? How example should I reference mouse properties (e.g. _root._xmouse) which which will always be properties of the main movie root timeline?

Thanks,

t

View Replies !    View Related
Modular AS And Target Paths Best Practice
I'm re-writing a movie so that elements of it are modular movieclips, so that should I wish to re-use them, I can simply copy onto the root time-line. What should I watch out for regarding my paths in the modular clips? i.e. should I always ensure they are relative or absolute? How example should I reference mouse properties (e.g. _root._xmouse) which which will always be properties of the main movie root timeline?

Thanks,

t

View Replies !    View Related
ToRef() - Simplifying Target Paths And References
You've probably run into this situation: You want a function to receive a target path (to a movieclip or an object) and allow it to be passed in either as a reference or as a string specifying the path. It can be a bit tiresome doing checks and if statements all the time.

Here's an idea I had; it's simple and seems to work well. The idea is that you can invoke the toRef() method on any variable, and it return a path if the variable evaluates to a string or a number. On the other hand, it will return a reference to itself if it is not a string or number.

------------------

// convert a string (hopefully containing a path) to a reference
String.prototype.toRef = function () {
return eval(this);
}

// convert a number to a reference
Number.prototype.toRef = function () {
return eval(this);
}

// return the object itself (because it's already a reference)
Object.prototype.toRef = function () {
return this;
}

// example usage: toRef()
path1 = "_level0";
path2 = _level0;
ref1 = path1.toRef();
ref2 = path2.toRef();
ref1._rotation = 10;
ref2._alpha = 20;

View Replies !    View Related
Scope-ing Nested Mc's And The /target Paths That Love Them
MY QUESTION: is there a way to scope instances that haven't been instanced in the first frame of the movie?

I got brave and nested my btn_mc clips inside a nav_mc.

On an action layer in the first frame of my timeline I have:

_root.nav_mc.btn1_mc.gotoAndPlay("start");

for example.

In the nav_mc timeline this works if and ONLY if the btn1_mc instance is on the first frame of the nav_mc timeline.

I'm trying to update my skillz and put everything in the first frame of the root timeline rather than doing the backasswards syntax on the mc itself this (onPress) which really confused me for about five years.

Is that ever acceptable (i mean not in a best practices sense but in a 85% solution sense). I'm so down with hacks and kludges if I can get away with it.

/Eval !!!!

View Replies !    View Related
Printing Textfield Target Instead Of MC
I don't have a printer at home so I can't test this.

I have a client with a scrolling textbox, they want the text in the box to print.

The print function, as I understand prints whatever's in the frame, within the specified bounding box.

If for a target I give it a variable containing text instead of a MC reference, will it just print the text?

View Replies !    View Related
Printing A Target And Anything Thats Touching It
How to I print a target and any other MC thats touching it?

View Replies !    View Related
"Tweening" Color - Help Me With My Target Paths
I'm trying to learn how to create the type of background color effect shown here: http://www.minettabrook.org/. I may have found a way, but I can only get it to work if the buttons and the Movie Clip are in the same timeline. The thing is, the movie clip I'd like to change the color of is on level 1 of my movie and my buttons are on level 2 inside a movie clip.

I'm not that knowledgable when it comes to action script. Could someone take a look at my script and tell me what I'm doing wrong in regard to my target paths?

To reiterate, my script is sitting in frame 1 of my timline on level 1. My color changing movie clip, "rectangle", is also on level 1 in the main timeline. My buttons are inside a movie clip called "nav_mc" on level 2. Here's the script:


//
//
var frames = 25;
var defaultHex = 0x003366;
//
// RGB to Hex
function rgbToHex (r,g,b){
return(r<<16 | g<<8 | b);
}
// Reverse
function hex2rgb (hex){
var red = hex>>16;
var grnBlu = hex-(red<<16)
var grn = grnBlu>>8;
var blu = grnBlu-(grn<<8);
return({r:red, g:grn, b:blu});
}
// Color Object
var myCO = new Color(rectangle);
myCO.setRGB(defaultHex);
// Fading Function
function fadeToHex(goalHex, steps){
var nowHex = myCO.getRGB();
var nowRGB = hex2rgb(nowHex);
var goalRGB = hex2rgb(goalHex);
var stepRGB = {};
stepRGB.r = (goalRGB.r-nowRGB.r)/steps;
stepRGB.g = (goalRGB.g-nowRGB.g)/steps;
stepRGB.b = (goalRGB.b-nowRGB.b)/steps;
var inc = 0
onEnterFrame = function(){
if(inc<steps){
var newR = (Math.round(nowRGB.r+=stepRGB.r));
var newG = (Math.round(nowRGB.g+=stepRGB.g));
var newB = (Math.round(nowRGB.b+=stepRGB.b));
var newHex = rgbToHex(newR, newG, newB);
myCO.setRGB(newHex);
inc++;
}else{
myCO.setRGB(goalHex);
onEnterFrame = null;
}
}
}
//
// Button Function Assignments
_level2.nav_mc.exhib_btn.onRelease = function(){
fadeToHex(0x006633, frames);
}
_level2.nav_mc.art_btn.onRelease = function(){
fadeToHex(0xCC3300, frames);
}
_level2.nav_mc.focus_btn.onRelease = function(){
fadeToHex(0x663300, frames);
}
_level2.nav_mc.news_btn.onRelease = function(){
fadeToHex(0xCC9900, frames);
}
_level2.nav_mc.gallery_btn.onRelease = function(){
fadeToHex(0x666666, frames);
}

View Replies !    View Related
Problems With "tellTarget" And Target Paths
Hey,
I've got a movieclip on one frame of the main timeline. Inside the movieclip-symbol's timeline, on the movieclip's last frame, I've got a button. Within the button's actionscript I've got this kind of script:

ActionScript Code:
on(release) {tellTarget("target-movieclip's instance name")gotoAndStop(355);}

The target movieclip is in the 355th frame of the parent movieclip timeline.
I also tried inserting both absolute and relative targetpaths in this script but it did'nt work. Every time I test the scene, after pressing that button I get a message like this in the Output-window:
Code:
"Target not found: Target="sydan" Base="_level0.suukko".
("sydan" is the target movieclip instance name and "suukko" is the parent movieclip instance name.)

If anyone has a clue about how this should be made, I'd appreciate very much that you'd share your knowledge. If it's better to place the target movie clip on the main timeline and not inside the parent movieclip symbol, that'll do just fine. I'd just like to know some way to make this work. I'd allso appreciate, if you could tell me, what's the meaning of the "level0" in the output-message.
Thanks for your patience!

View Replies !    View Related
Need An Explicit Printing Tutorial For Flash 5 Or An Expert On Printing...
Been trying to print for a couple of hours now.
It seems to work fine when I use simple objet on the main timeline, but I get weird result when trying to print nested object.

For example, it got a movie clip containing multiple duplicate mc, and a dynamic text field. This movie clip is out of the movie stage.

When I try to print it it using:

printAsBitmap(this.effective.printArea, "bMovie");

nothing get printed.

so I move the movie on the stage.

this.effective._x = 0;
this.effective._y = 0;
printAsBitmap(this.effective.printArea, "bMovie");

the frame gets printed, but the text is out of phase even if it looks fine on the screen.

I have define the label of the frame I want to print with #p and the printing area with #b.

Why can I print my movie if it's off the stage, and why does the dynamic text field is printed out of phase when I tried to print ?

----------------------------------

At least can someone direct me to a good flash 5 tutorial on printing...

Martin
martin.tremblay37@sympatico.ca

View Replies !    View Related
Flash Printing - Trouble Printing Bitmap
Hello,

I have a Flash MX (not 2004) project that generates dynamic printable coupons. Here's the lowdown of what happens:

1. The flash coupon is loaded - dynamically loads in text and an external jpeg. This data is displayed in one frame that the user sees on the screen, and in another frame that the user never sees but is sent to the printer.
2. User presses print.
3. The flash movie sends the 'print this' frame to the printer, and voila! Printed coupon!

Here's a sample link: http://givingcorps.com/gc_central/br...&CoId=2&ChId=4

All works well, but when it comes time to print the coupon, everything prints but the jpeg. In fact, after you hit the 'print' button and the print dialogue box comes up, and you begin to print, you can actually see the jpeg vanish from the flash movie, only to return when print dialog box is finished!

I've tried a variety of tests - printing just the current frame, incorporating a test to make sure the image is loaded before allowing printing, and trying all the different print functions. I'm aware that print() only prints vector while printAsBitmap() will print everything, although with less quality, and I'm currently using printAsBitmap().

Has anybody run into this? Is there any solution or anything I'm overlooking?

Thanks for your help.

View Replies !    View Related
Printing Flash Player 7 Printing
hi,
i want to set up a flash site with multiple levels and have all levels print. is this possible? i've printed before out of flash playere 7 but was only able to print out of one level. any insights would be appreciated.
muchas gracias,
lavadome

View Replies !    View Related
Printing In Flash. Problem With Printing Twice...
I have an all vector form that displays data within it. As soon as it opens, it prints. I am running this in the first frame of the root time line.

Code:
print(_level0, "bmax");
stop();
The timeline is 2 frames and I am wanting to print both pages. Everything works fine expect after the print dialog box pops up and you hit print, then it prints the 2 frames, it pops up again and wants to print the pages one more time. I only want it to print once. Any ideas?

View Replies !    View Related
Targetting Dynamic Paths Within Dynamic Paths...
Hello,

I'm already aquainted with the Advanced Pathing tutorial, but I have a question relating to taking it a step further:

I've created a series of dynamically named empty movie clips, and filled each of them with a dynamically named clip from the library. Now, applying actions and properties to the empty movie clips is easy enough, but my problem is that I can't figure out the syntax for applying actions and properties to the dynamically named clip from the library that is inside the dynamically named empty movie clip.

My first instincts have been to try:

ActionScript Code:
_root[emptyclipname][innerclipname].foo
and when that didn't work, I tried:

ActionScript Code:
_root[emptyclipname].onEnterFrame = function(){
     this[innerclipname].foo
  }

I'm really at a loss here. Is what I'm attempting to do even possible?

View Replies !    View Related
Newbie Movement Question - Move Number Of Pixels NOT To Target Or Even PRECISE TARGET
Like a lot of people im using the code below to move a movie clip my question is this - how do i move the clip exactly a set number of pixels from its current position (lets say 20 pixels) rather than setting a target?

(what im using now)

onClipEvent (enterFrame) {
if (_root.go==1 && root._x<300) {
_x = _x+2;
}
}

ive tried lots of things but there must be a simply answer - someone please help.. thanks.

My second question is how do i move something to a specific x target ie not use <300 or such like - ive tried != and stuff like that but to no avail..

1st question more important right now though - thanks!

View Replies !    View Related
Apply Glow Filter On Target MC While Dragging An Object And Rolling Over The Target
I can get my filter to apply to a movie clip if i simply rollover or roll out of it. When the mouse rolls out, the filter is set to undefined. The problem I am having is that I want the object that is in effect the hit area to glow (have a filter applied) when the draggable object is being dragged over it.

This would make is easier for the user to visually identify that where they are currently hovering over, whilst dragging, is the area that they should drop the object.

Part of my code looks like this


Code:
this.onRollOver = function () {
if(_global.isDragging == 1){
this.filters = glowFilterArray;
}
}



this.onRollOut = function () {
_global.isDragging = 0;
this.filters = undefined;
}
_global.isDragging is set to 1 at the onPress stage, when startDrag occurs.
_global.isDraggin is set to 0 onRelease of the draggable object.

Are there any ideas for a solution?

View Replies !    View Related
Action On Button, Tell Target, Error=target Not Found
Hello, beings of helpfulness!

I am working at a non-profit and trying to make a website from a Flash template with minimal, but some Flash experience. The template has multiple timelines (main page, content pages, and buttons). This part I am still learning. On the home page, I have an image (mc) that loads, with an instance name of "girls." Menu buttons take the viewer to corresponding content pages, which is when I want the image on the main page to dissapear to make room for the content. When the viewer selects the home page again, I want the image to appear again. At first I put in the following action (except for the home page), alpha=0. It worked! And now it doesn't! I did play with the button timelines some. I tried taking the actionscript out and putting it in again, to no avail.

The action in my button is


on (release) {
tellTarget ("_root.girls") {
_alpha=0;
gotoAndPlay(11);
}
}

And the error I now get is: Target not found: Target="_root.girls" Base="_level0.instance58.instance543"

Any ideas? I'm quite stuck. Thanks so much for any help, or suggestions to do this another way.

I've attached the swf, but the compressed fla was too big. I can email it to anyone willing to fix what is probably very simple, except to the newbie with little but increasing experience!

I'm using Flash MX.

View Replies !    View Related
LoadMovie In A Target Without Inherit Of Target Properties?
hi,

I load a SWF-FILE in a target MovieClip with loadMovie(). After that I want to read the _width and _height of loaded MovieClip (from the SWF-FILE), but I only get the properties of the target MovieClip.

loadMovie ("test.swf", "dummySwf");
trace("height:"+dummySwf._height+"width:"+dummySwf ._width);
//put out the properties from target, not from new clip :-((

any idea?

thanks

View Replies !    View Related
Target A Specific Frame In And Instance Using Tell Target
is it possible to target a specific frame in and instance using tell target? I can get the effect i want by using goto frame, however i want to use this mc or .swf in a movie, and i don't want goto frame to affect the whole movie, just the mc.

View Replies !    View Related
Target JS Button To Target Frame Swf At Different Html...how?
this is my 2nd post regarding this problem, i'm seeking for many input nad perhaps the example soource file/code...

kind like a loading specific frame of swf from a html hiperlink?!? can it be done?

- say we have a 3 frame swf, located at index1.html
- then i have a button(gif/jpeg htmlpage not flash), located at index2.html

- what i wanna do is when i click the button(JS) on index2.html, it will open the index1.html then start play the swf at frame 2 NOT 1(beginning)

how can we do that?

View Replies !    View Related
Printing, Why Is Printing Such A Problem?
Why can I not print several specific frames on the main timeline?

I know how to use the #p label and all those other print tutorials...

Does anyone have a solution?Or leads, or something

View Replies !    View Related
Printing And Printing Datagrids
Hi - a double question here - can anyone help with information on creating a print button for a page in an swf and also to printout the entire contents of a datagrid?

thanks!

f

View Replies !    View Related
Load Movie Into Target And Tell Target
when i load a movie into target i can effect thie movie with setproperty but not with tell target, is this "normal"?

View Replies !    View Related
Paths
I have a movie that is looping in the root (level0) with some buttons, these buttons are within a movie clip "butoes", lets call them "butoes1", "butoes2", ...
When I touch one of these buttons 2 things happens:
- Is loaded one loading movie ("loading.swf") in level1
- Is assigned one variable "abrir" that will define which flash movie is going to be loaded to level1 after the loading.

My problem is that i don't know how to read the value of the variable abrir in the loading movie.

I'll be very gratefull if anyone help me solve this prob

View Replies !    View Related
Plz Help With Mc Paths
Hey.

I have some mc:s woth buttons inside on the scene. When I move my mouse over one of them (a picture) the same picture but bigger should fading in. I've done this but I've got 2 problems. The first is that when you move your mouse out from the button the larger picture should fade in, and if they're been any mistake the other mc:s (same thing) should also fade out if any of them are still big. I'm using this code but it isn't working!!!!
The button lies inside a mc that lies on the scene, and the button should change things inside other mc:s laying on the same scene.
On frame 6 the bigger pic fade out.
The tell target "/" is suppose to get back to the scene from the mc.

on (rollOut) {
tellTarget ("/") {
tellTarget ("slakt") {
gotoAndPlay (6);
}
tellTarget ("kort") {
gotoAndPlay (6);
}
tellTarget ("mig") {
gotoAndPlay (6);
}
tellTarget ("hiss") {
gotoAndPlay (6);
}
tellTarget ("box") {
gotoAndPlay (6);
}
tellTarget ("bank") {
gotoAndPlay (6);
}
tellTarget ("bazooka") {
gotoAndPlay (6);
}
tellTarget ("aj") {
gotoAndPlay (6);
}
tellTarget ("synsk") {
gotoAndPlay (6);
}
}
}


The other problem is that the mc:s lay next to each other so close that if one of them fade to a bigger picture it may be overlapped by other mc:s.
How can I make it so that the mc:s that's fading in the large pic is the mc on top of ther others on the scene? Is that difficult?

Thx for any help.

If you don't understand let me know so I can rephrase.

Here's the adress to the movie I'm working with. Use meny "arbeten" and then press on "flash" and there lay the mc:s.

http://www.grace.se/~tgy.hema/hemsida.html

View Replies !    View Related
Paths
I have a flash movie that loads jpg's. I want to be able to use this flash movie on different pages of my site in diffent folders and different levels. On the pages that are on a diffent folder level the movie doesn't load the images, because the path is incorrect.
../assets/movie.swf
../..assets/movie.swf

Is there a way that I could keep the path to the image consistant with the swf., so I don't have to make several movie that have diffent paths to the image?

I hope this makes sense... If not let me know and I will try to explain it better.

Thanks

View Replies !    View Related
Paths
I am trying to create a flash movie with a map of great britain and a route from the top to the bottom.

After some intro animation the map zooms up to the top and displays the route line (which is also the path for a dot that follows it)

I want to animate the dot following the path whilst moving the map slowly upwards so that it ends up at the bottom corner.

I can't attach the dot to the path when it's converted to a symbol to enable it to move up but without making it a symbol the path doesn't move up with the map.

Does that make sense?!

Please help!

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved