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








Print Command Doesn't Work From External Movie.


I am wondering if there is any way to make a "Print" command working if the movie which I need to print is loaded MC inside main movie. This command is working well if to print from external movie itself, but when it comes to print from main movie computer is freezing. I am loading this external movie inside main movie inside placeholder movie clip named "placeholder" in the main movie. The command to load the movie which I need to print is:

"loadMovie("quizA.swf", "_root.placeholder");"

The code for print button in the external movie is:

on (release) {
gotoAndPlay("#p");
print("_parent.quiz.paper", "bmax");
}

Any advise is highly appreciated.
Thank you in advance!




FlashKit > Flash Help > Flash ActionScript
Posted on: 05-19-2003, 06:30 PM


View Complete Forum Thread with Replies

Sponsored Links:

Soundobject Doesn't Work In A Movie Called From A LoadMovieNum Command (MX)
i have this following code:

on (press) {
mySound = new Sound ();
mySound.attachSound("myMusic");
mySound.start();
}

this works when the movie it resides in is played individually. But when i call this movie from another movie using the loadMovie command, nothing happens. i made sure that the idname matches that of the identifier of the sound in the library, but still, same result. is this a bug from the flash player or what? Thanks in advance, guys.

View Replies !    View Related
Cannot Get Print Command To Work Correctly
I am writing actionscript right now and I cannot get my published flash movie to print directly. I have imported text from a word document, therefore, when I hit print in the movie, it just opens the word program and opens that file, then I have to hit print in Word to get that to work. here is what it looks like:

on (release) {
getURL("PhaseThree Tutorial.doc", "_blank");
fscommand("fullscreen", "false");

now i am not sure what to add to get this document to print directly. PLEASE help if you have any ideas. Thanks in advance.

One thing to clear up. The Movie and the accomponying word documents are on a CD not posted for the web. Therefore, how it is set up i want to hit print in the movie, and have the actionscript written so that it locates the word doc./and prints it directly, without having to take the extra step of the word program opening, the text opening up, and then having to manually hit the print command in word. now it just opens the doc in word, then i have to hit print. Thanks for any ideas.

View Replies !    View Related
Preloader With External Movie Doesn't Work, Help Please
This simplistic loader does not work with an external movie loaded into level1 from level0 with this command:

loadMovieNum ("image.swf", 1);

(Image.swf movie frames)
FRAME 1:
ifFrameLoaded (5) {
gotoAndPlay (5);
}

FRAME 2:
gotoAndPlay (1);

FRAME 5:
The Image and a stop command

It does some funky stuff on level0. What needs to be changed so I can use this on my level1 movie?

Thanks

View Replies !    View Related
Loaded External Movie Nav Doesn't Work
I have a main fla 'rock.swf' that pulls in an external movie called 'basenav.swf'. The 'basenav.swf 'has four buttons with the following code on each button.

on (release) {
this.targetx = -325;
slide.gotoAndPlay("move");
}

The 'basenav.swf' works perfectly when tested alone but when I test the main movie 'rock.swf' - the navigation in 'basenav.swf' doesn't respond.

I have the following code within the 'rock.swf' movie that pulls in 'basenav.swf'.

loadMovie("basenav.swf", "basenav");

Both of these files sit in a folder on the main level and I think that this is a path problem but i'm not sure how to go around fixing it. Please could someone enlighten me?

Tasvin

View Replies !    View Related
Why EXEC Fs Command Doesn't Work With Flash MX?
Hi guys, I'm working on CD made in flash (MX), I'm trying to open a video via an EXEC command that load a .bat file. Now the thing is that it doesn't work!! Well at least it seems so. But the same thing done with flash 5 works properly.

Can anyone tell me what's wrong??

T.i.a
Giano

View Replies !    View Related
F12 Command And Publish Preview Doesn't Work
F12 command and Publish preview doesn't work. I can't use F12 command to test movie in Browser
Is it security settings?

How can I use it?

Pawel

View Replies !    View Related
Preloader Doesn't Work Properly With 'attachSound' Command
I have read about this problem somewhere in the tutorial, the solution the author gave is making seprate .swf files. But I don't want my movie has more than 1 .swf file..
Uhm, please tell me how can I solve this problem?

View Replies !    View Related
How To Add Print Command In Swf Movie?
I want to put a print command in my flash movie which will be capable of printing the entire movie image or printing what is only viewed (document size).

How can I do it? I want to put a PRINT button in the movie. Maybe some print options like paper size if that would be possible?

View Replies !    View Related
The Command: LoadMovieNum ("file.swf",1)doesn't Work
Last edited by Rodras : 2003-06-06 at 16:36.
























...

View Replies !    View Related
Mc With "goto" Command Doesn't Work
Hi guys,

and thanks in advance for your help.

got a couple of MC's in frame #1, what I want is, when the mc is finished the movie shifts to framed 2 and plays the clips there, then to 3 and so on.

The longest clip has a "goto frame 2 and play" command in the last frame but it doesn't work.

what am I doing wrong?

Thanks again,

View Replies !    View Related
Print Action Doesn't Print Content In The Centre Of Paper.
I am wondering if there is any option to control how the content of the frame can be printed from Flash projector of a loaded movie clip.
The "Print" button resides in the loaded movie clip. Here is the code:

on (release) {
print("_parent.quiz", "bmovie");
gotoAndPlay("#p");
}

Shouldn't be any problem. When I print this frame from the loaded movie itself it is printed well. It printed all content exactly in a centre of the page. However, when I try to print this frame of the loaded movie from the main movie it moves all content to the right bottom side of the paper.
Any advice is highly appreciated.
Thanks!

View Replies !    View Related
Drop Menu : Rollovers/GetURL In A Movie Don't Work...and The SWF Doesn't Work In FF
My links/rollovers don't work in Mozilla and the dropdown menu part don't work (the rollovers and the getURLs) in any browser.

What's wrong with this??? I think it's something simple.
I've already tried:

Code:
this._lockroot = true;
I also tried writing the AS as:

Code:
one.title.text = "The Text";
one.onRollOver = over;
one.onRollOut = out;
function over () {
this.gotoAndPlay(2);
}
function out () {
this.gotoAndPlay(11);
}
one.onRelease = function(){
getURL("http://www.thelink.com");
}
...didn't work...

I hope someone can help!

Download the: Source File


(Lately I've gotten no help off this site and it's been very depressing because this site people used to be very helpful...I hope someone can change my mind)

View Replies !    View Related
Print 2 Levels In One Print-command
Hi,

What I have done is a print-window that lets the user choose which pages to print. This works fine when the user selects only one checkbox but when more then one page is to be printed the problems starts.

Each page is loaded onto a different level. I don't want to have to reload the movie-clips since I have variables in them that need to remain intact. I then make the movie-clips invisible so that only on appear at a time on the main time-line (frames 5-9).

The code so far for the print-dialog looks like this...

on (press) {
if (_root.utskrift.alla_checkbox.getValue() == true) {
print(???);
unloadMovieNum(8);
}
if (_root.utskrift.prog_checkbox.getValue() == true) {
print(_level1, "bmovie");
unloadMovieNum(8);
}
if (_root.utskrift.dd_checkbox.getValue() == true) {
print(_level2, "bmovie");
unloadMovieNum(8);
}
if (_root.utskrift.dh_checkbox.getValue() == true) {
print(_level3, "bmovie");
unloadMovieNum(8);
}
if (_root.utskrift.funk_checkbox.getValue() == true) {
print(_level4, "bmovie");
unloadMovieNum(8);
}
if (_root.utskrift.samm_checkbox.getValue() == true) {
print(_level5, "bmovie");
unloadMovieNum(8);
}
}

... where movie8 is the print-window. The first if-statement is for printing all pages and if you can help me witj tjis I will be satisfied.

Any ideas that you have will be grately appreciated. This is the last thing I have to do before the project is finished so please help me before I go mad.

If you could axamplafy with some code that would be grate since I'm not a used programmer.

View Replies !    View Related
[F8] Xml And External Css- Css Doesn't Work
I can't for the life of me get this to work.
I'm pulling in xmlstyles.css, and the content is being pulled from studio.xml.

Everything works fine EXCEPT I can't get the text to display correctly. For easy purposes I made it blue. Also any time I add formatting it screws it up.

If anyone can help me with this I'd APPRECIATE IT! I am going crazy!

View Replies !    View Related
External Swf Doesn't Work In Blank Mc
for some reason my external swf doesn't work when I load it into a blank movie clip, instance name movieholder. The external.swf is a slideshow mechanism with buttons that make a panel slide back and forth.

Heres the code I attached to a button

on(release) {
loadMovie("external.swf", _root.movieholder);
}

View Replies !    View Related
External Swf Doesn't Work After Importing It
I have a preloader swf (loadingBar.swf) that contains a preloader bar and an empty movie clip (loader) that loads an external swf (content.swf). All those experienced with AS will know why I chose to import the main body of my swf as a separate swf. My conten swf contains an object (shapeMC) and the first frame of content.swf, puts the shapeMC into a variable called dupShapeMC, using a for loop, duplicates (duplicateMovieClip) the subShapeMC, x amount of times. I then put dupShapeMC + x into a new variable called posShapeMC to distribute it horizontally and vertically.

// original shape and space between shapes
originX = 72;
originY = 60;
width = 140;
height = 140;


// used to distribute horizontally and vertically
hor = 4;
ver = 3;

x = 1;

dupShapeMC = "shapeMC";

// the loop
for (i=0; i<ver; i++) {
for (p=0; p<hor; p++) {

// duplicating shape
duplicateMovieClip (dupShapeMC, dupShapeMC+x, x);
posShapeMC = _root[dupShapeMC+x];

// positioning the shapes
posShapeMC._x = originX+p*width;
posShapeMC._y = originY+i*height;

// incrementing x
x++;
}
}

this works fine if I test the movie on its own but when I test the movie from the preloader fla the content swf loads but the shape mc's don't duplicate. I think it has something to do with my levels but I can't figure out what? Can someone take a quick look at my fla's and tell me where I've gone wrong.

http://www.geocities.com/nurbie4/content.fla
http://www.geocities.com/nurbie4/preloader.fla


CV

View Replies !    View Related
Tracking End Of External Swf, Doesn't Work? Pls Help
Hello,

I'm currently loading multiple external swf's into a movie clip. Each swf is of a different length, and once each completes playing I need to move to the very next frame in the movie.

Since I'm never sure how long the current swf is, I'm comparing the current placement of the play back head to the total length determined by _totalframes.

Here's my code: ---------------------------------

onClipEvent (enterFrame) {
if (_root.holder._currentframe >= _root.holder._totalframes) {
nextFrame();
trace("Condition met!");
}
}

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

Now I threw the trace in there so I could track if the action was even working. And it is, everytime my external swf loads I get prompted that the condition was met. But the playback head never moves to the next frame. What gives? I've also tried a goto in place of the "nextFrame" command but that also didn't work.

I'm at a loss here, if anyone can help me it'd be appreciated.

Thanks
Monk.

View Replies !    View Related
Loadmovie With External Jpg Doesn't Work
Hi everybody,
Excuse me for my English, i'm French...

I have a big problem.

My "loadmovie" works fine in my standalone PC,
but when i put it in my web site, nothing appears.
I want lo load 80-100 Ko external images (jpg in standard encoding).

I think i have to loop until my jpg been loaded
but can you give me a solution to know when my external jpg is loaded

or can you give me a simple example (*.fla) with an external image preloader...

Thanks

View Replies !    View Related
Loading External Swf Xy Still Doesn't Work.
mike, thanks, but it does't work . it does load it in a separate window when i use

on (release) {
loadMovienum("cooling.swf", "_root.holder_mc")
_root.holder_mc._x = 125;
_root.holder_mc._y = 50;
}



i can't get it to work with

on (release) {
loadMovie("cooling.swf", "_root.holder_mc")
_root.holder_mc._x = 125;
_root.holder_mc._y = 50;
}

View Replies !    View Related
Paths In External Swf Doesn't Work
Hi!

I use this script to load a external swf onto the stage in a fixed place cotrolled by a empty MC named mc_placeholder

on (release) {
_root.mc_placeholder.loadMovie("allen1.swf");
}

That script I put on a button and when released it loads the external swf (allen1.swf) on a fixed place desided by the empty mc named mc_placeholder

This works fine!
The problem is that the buttons on the external swf doesnt work. It contains numbers 1-15 and when pressed on number 1 a picture shows and on number 2 another and so on. But this doesnt work, seems like my paths on the swf doesnt work when loaded into the main movie...

So the question is... Why dont the paths work?

really need help with this and would be grateful fo all the help you could give me!

Thanks!

View Replies !    View Related
Loaded MC Doesn't Work - External Does
Ok, I'm stuck. I've got a swf that works fine on its own, but when I load it into a scrollpane nothing displays (it's all dynamically created from XML).

Here's the code in the SWF:


Code:
var url = "singleScreen.as";
var x = new XMLloader();
x.ignoreWhite = true;
var myListener = new Object();
x.addEventListener("onLoad", myListener);
x.load(url);

myListener.onLoad = function(evt:Object):Void
{
_root.screen = new EditScreen(_root);
screen.parseXML(evt.target.firstChild);
screen.draw();
screen.setMode("move");
}
and the code that loads it in the scrollPane:

Code:
pane_mc._lockroot = true;
pane_mc.contentPath = "editScreenLayout.swf";
Anyone have an idea why it doesn't work?

View Replies !    View Related
Loaded External Swf Doesn't Work
Hello everyone,

I have a swf gallery, and it works perfectly if I run the gallery.swf directly, but I have an index.swf where I'm loading the gallery.swf. Everything works and it loads all the different thumbnails on the xml file, but I can't load the bigger images.

It works if I run the gallery.swf directly, but it doesn't work if I run it inside the index.swf. I simply use the following loading method:


Code:
var loader:Loader = new Loader();
var request:URLRequest = new URLRequest("gallery.swf");

loader.load(request);
addChild(loader);

View Replies !    View Related
Print Doesn't Print Variables, But Displays It ?
Q1. Dynamic values are passed to a print frame (say frame 10 of the main timeline). A movieclip in the

frame 10 contains 2 frames.
Q2. The dynamic values are passed correctly into frame 1 of the movieclip, but not frame 2 of the same

movieclip in the print movieclip timeline.
Also, when I move from frame 1 to 2 and back to frame 1,

the values in frame 1 are also not displayed in the dynamic text.
Q3. When the Print command is clicked, it doesn't print all the dynamic values. Say while giving print

command from frame 1, the values in the frame 2 are not printed. When I move to page 1 and page 2

backand forth, and then give the print command both of the values are not printed (but they are

displayed). Where is the problem?

<as>
Code:
first frame:

stop();
letter = "B";

for(i = 1; i<5; i++){
this["item"+i+"_txt"].text = "value"+i;
trace(i);
}

//code for the print button to transfer the values to the print page.
choose_btn.onPress = function(){
PBitem3 = item3_txt.text;
PBitem4 = item4_txt.text;
for(j = 1;j<3; j++){
_level0["P"+letter+"item"+j]= _level0["item"+j+"_txt"].text;
}
gotoAndStop("print");
}


print frame:
for(k=1;k<8;k++){
_level0["printable_mc"]["PBitem"+k+"mc_txt"].text = _level0["PBitem"+k]
}

print_btn.onPress = function(){
print(_root.printable_mc, "bframe");

}

</as>

View Replies !    View Related
Getting Print; To Work On Loaded Movie
Ok, here's what I need.

My main movie loads 2 other swf's on 2 sererate levels. One of these movies holds a print button. I've read tuts on flashkit.com on print buttons, and get that you can specify which frames to print, but it's all relative to the main movie. Is there a way to get it to print the other 2 loaded movies as well?

Luckily these other 2 movies only have one frame, but when I print it only seems to print the main movie loaded in the html.

You can view the site if you want to see... http://www.weddingbook.ca/index_test.html

choose accomodations/hotels/chateau laurier... As you will see, the main movie loads the menu and the hotel description... I doin't need the menu to print, just the main movie and descriptions.

Anybody have an idea how to do this?

View Replies !    View Related
Bar Preloader In External Swf Doesn't Work Correctly
Prologue:
1) what's wrong with my preloader script?
or
2) is this a known issue with MAC OS9/IE5
and
3) and how can I test preloaders when they are in external .swfs

Developing on Windows98 and Flash 5)


My preloader, (which is script taken from PeachPit Press' Macromedia Flash5 Advanced book) does the following when viewed on a 56K modem/MacOS9/IE5:

It loops several times, then proceeds to SLOWLY run the preloader bar incrementally, except that it's now godawful slow. You can view it at our test site:

http://mccay.hitchcock.org/ADL/summi...dings/joe.html

the live version seems to load just fine on a dial-up (it doesn't yet include the preloader, and makes me wonder if a preloader is necessary for this one, but I want to know what makes this happen anyway...). It is here:

http://iml.dartmouth.edu/ADL/summit/...dings/joe.html

How I built it:

I used one main .swf which contains the non-changing components and title sequence (as a MC) and several external .swfs which contain the audio and timed text which are loaded and unloaded depending on which frame you are in of the main .swf.

I used external .swfs because, it was easier to time the text to the audio, and a little bird once told me that Flash degrades audio when it's put into an MC. Plus, Flash crashed every time I tried to export a movie with 11 minutes of streaming audio!

The popup menu ("Jump to Section") is also and external .swf which is loaded into level2.

Our network is too fast for me to test this project at work (and I read that the bandwidth profiler doesn't help with external .swfs), so I must go home for a slow connection, so i can never tell until that evening if what I've done has fixed the problem. Or if it's a problem that only occurs with a limited number of OS/IE combinations (I've encountered other funny little mac issues). So any comments on a better way to test a preloader in this situation are also helpful.

Here's the object script of my preloader, in the first frame of each external .swf:

onClipEvent (enterFrame) {
if (_root._framesloaded>=_root._totalframes) {
_root.gotoAndPlay("thisMovie");
} else {
this.gotoAndStop(Math.floor((_root._framesloaded/_root._totalframes)*this._totalframes));
}
}

the preloader itself is simply a bar which has a motion tween and 20 frames, and a stop() on the last frame. Incidentally, there is also a stop() in the same frame as the preloader MC.

Thanks! Regrets for the blandness of the content. Not my choice!

View Replies !    View Related
External Preloader Doesn't Work In Browser
Hello,

I've got a preloader for an exernal jpg using the following code:

percent = Math.floor(myClip.getBytesLoaded()/myClip.getBytesTotal()*100);
result = percent + "% is loaded";


if (percent == 100){
gotoAndStop(3);
}else{
gotoAndPlay(1);
}

works fine when i test the movie, but when I test it in a browser the preloader doesn't work.

Anyone have a similar problem?

Cheers!
fg

View Replies !    View Related
Lining External Images Doesn't Work
Hello,
i am using the code below to link external images. When i use it in my test file by itself, it works fine. When I try to use it in a flash movie that i am making with many different types of MC and action script, It doesn't work.
Why not, It's the exact same code, being used the exact same way. Any ideas anyone



Code:
_root.createEmptyMovieClip("logo", 5);
_root.logo.loadMovie("daddy.jpg");
_root.logo._xscale = 50;
_root.logo._yscale = 50;

View Replies !    View Related
Import External Array, But... Doesn't Work.
Hello all, I'm new to actionscripting, but I have to do some hard things such as this importing values from an external array to an array inside flash. I tried many tutorials but none of them works. I tried a lot and found out the data although is imported, but I have no idea where they are stored. I need to utilize the values in later frames.

I think the values are stored in qArray, but when I traced the qArray even in the myVars level, it returns undefined. I tried very hard to debug but I'm very new to actionscripting in Flash. please offer advice and solution... thanks.

FRAME 1 :


ActionScript Code:
var qArray:Array = new Array();
var myVars:LoadVars = new LoadVars();
myVars.load("input.txt");
myVars.onLoad = function(success){
    if(success){
        qArray.split("###");
        trace(qArray.length);
        for ( z=0; z<qArray.length; z++ ){
            //loadVariables(qArray[z], "_root");
            trace("YES");
        }
    } else trace("FAIL!");
}

Frame 50 :

ActionScript Code:
trace(qarray[0]);


OUTPUT :

ActionScript Code:
Level #0:
Variable _level0.$version = "WIN 7,0,14,0"
Variable _level0.aArray = [object #1, class 'Array'] []
Variable _level0.myVars = [object #2, class 'LoadVars'] {
    onLoad:[function 'onLoad'],
    qarray:"1###2###3###4###5"
  }
Variable _level0.z = 0

View Replies !    View Related
External MC Preloader Doesn't Work In The V7 Player
I have a preloader & time display that was published to the v6 player with AS1. However, when i switch the pub settings to the v7 player - still AS1 - the preloader doesn't work.

here is the code

Code:
function preload(theClip) {
if (!theClip.doneLoading) {
// If we have all the frames, turn off the transfer light.
if (theClip._framesloaded>0 && theClip._framesloaded == theClip._totalframes) {
transferIndicator.gotoAndStop("off");
theClip.doneLoading = true;
trace(theClip._name);
// Optionally start the clip once it's done loading...
// theClip.play();
} else {
transferIndicator.gotoAndStop("on");
// Optionally pause the clip until it's loaded...
// theClip.stop();
}
// -- Get loaded movie time
getTime = math.round(theClip._totalframes/30);
if (getTime>59) {
newGetTime = getTime-60;
if (newGetTime<10) {
movieRunTime = "Current movie length - 1:0"+newGetTime;
} else {
movieRunTime = "Current movie length - 1:"+(getTime-60);
}
} else {
movieRunTime = "Current movie length - 0:"+getTime;
}
if (getTime<=9) {
movieRunTime = "Current movie length - 0:0"+getTime;
}
// Display loading byte counts in text fields.
bytesLoadedOutput = theClip.getBytesLoaded();
bytesTotalOutput = theClip.getBytesTotal();
// Strip out the file name of the .swf loading into the
// clip and display it in a text field.
var lastSlash = theClip._url.lastIndexOf("/");
clipURLOutput = theClip._url.substring(lastSlash+1, theClip._url.length);
// Set the width of the loading bar.
var percentLoaded = (theClip.getBytesLoaded()/theClip.getBytesTotal());
preloadBar._width = (preloadBarBG._width*percentLoaded)-5;
}
}
I can't seem to figure out what's going on, can anyone else? I think i need another set of eyes to look at it.

View Replies !    View Related
Loading External Sound Doesn't Work
I'm trying to load the external sound file melo01melodrama.mp3 to play in my movie. In the help files it says

To test the examples in this chapter:

Create a new Flash document and save it on your computer.
In the Timeline, select the first keyframe and open the Actions panel.
Copy the example code listing into the Script pane.
If the code involves loading an external sound file, it will have a line of code that looks something like this:
var req:URLRequest = new URLRequest("click.mp3");
var s:Sound = new Sound(req);

where "click.mp3" is the name of the sound file being loaded. In order to test these examples, you'll need to have an mp3 file to use. You should put the mp3 file in the same folder as your Flash document. You should then alter the code to use the name of your mp3 file instead of the name in the code listing (for example, in the code above you'd change "click.mp3" to the name of your mp3 file).

From the main menu, choose Control > Test Movie to create the SWF file and preview (and hear) the output of the example.

Well, I created a new frame, opened the Actions panel and put
var req:URLRequest = new URLRequest("melo01melodrama.mp3");
var s:Sound = new Sound(req);

in the Script pane. However, if I try to test the movie, nothing plays. The Flash movie is in the same folder as the mp.3 file, so it's not a path issue. How do I get this to work?

View Replies !    View Related
External Swf Loaded Into Main Swf Doesn't Work
Hi all,

I have use loadmovieclip to load an external swf into my main swf. but the external is not working after loaded into the main.. it is a guestbook that i found on the internet but i got the source files. the guestbook doesn't work BUT it DOES load into my main swf.

Do i have to change anything in the guestbook.swf in order for it to work? their values are all referenced by _root.xxxxxx = xxxxx.

Thanks in advance.

View Replies !    View Related
Loading External Txt Doesn't Work In MX2004?
Okay I have some files built in MX that use this on the main timleine:

ActionScript Code:
function textLoad(filename) {    loadText = new LoadVars();    loadText.load(filename);    loadText.onLoad = function(success) {        if (success) {            this.stafftxt.html = true;            this.stafftxt.htmlText = this.staffinfo;        }    };}


and then on a button I have:

ActionScript Code:
on (rollOver) {    textLoad("craver.txt")}


This works just dandy in MX files but it is not working in MX2004. A trace on success returns the evil Undefined.

Any clues why?

thanks

View Replies !    View Related
Sliding Menu Doesn't Work In External Swf
I created a sliding menu (tutorial from this site) which works perfect, but when i put the .swf into my main page the sliding doesn't work any more.
is there anything I can do?

View Replies !    View Related
Loading External Txt Doesn't Work In MX2004?
Okay I have some files built in MX that use this on the main timleine:

ActionScript Code:
function textLoad(filename) {    loadText = new LoadVars();    loadText.load(filename);    loadText.onLoad = function(success) {        if (success) {            this.stafftxt.html = true;            this.stafftxt.htmlText = this.staffinfo;        }    };}


and then on a button I have:

ActionScript Code:
on (rollOver) {    textLoad("craver.txt")}


This works just dandy in MX files but it is not working in MX2004. A trace on success returns the evil Undefined.

Any clues why?

thanks

View Replies !    View Related
Sliding Menu Doesn't Work In External Swf
I created a sliding menu (tutorial from this site) which works perfect, but when i put the .swf into my main page the sliding doesn't work any more.
is there anything I can do?

View Replies !    View Related
Pop Up Command Won't Work Form Loaded Movie
Can someone help me out here - I have been trying to get a pop up to appear when a button is clicked.

The problem I have been getting is that in IE5 (mac) the swf in the main window dissapears when the pop up opens.

I think that the problem is in the fact that the button that causes the pop up is in a loaded movie in level 1 rather being at level 0.

Does this right and how can I combat it!

This is giving me insomnia!!!

Diggz

View Replies !    View Related
OpenNewWindow Command Does Not Work From Flash Movie?
Hi guys i am using the code below it works but only from a simple button uploaded on to the server, but when i use this buttong from a larger flash movie it does not open the new window. Can someone please tell me what i am doing wrong?

thanx for your help guys.

on (release) {
getURL("javascriptpenNewWindow('http://www.theukama.com/poll/poll.php','thewin','height=320,width=250,toolbar=n o,scrollbars=no') ");
}

kind regards

Mijan

View Replies !    View Related
OpenNewWindow Command Does Not Work From Flash Movie?
Hi guys i am using the code below it works but only from a simple button uploaded on to the server, but when i use this buttong from a larger flash movie it does not open the new window. Can someone please tell me what i am doing wrong?

thanx for your help guys.

on (release) {
getURL("javascriptpenNewWindow('http://www.theukama.com/poll/poll.php','thewin','height=320,width=250,toolbar=n o,scrollbars=no') ");
}

kind regards

Mijan

View Replies !    View Related
Print Scanned Work From Flash Movie?
I am trying to make a flash movie out of scanned pages from a magazine. Something simple with buttons to go to the next page etc. It looks great to view but to print it is crap and if I scan the images at a super high resolution they would need to be scaled down to fit in the movie anyhow.

ANY SUGGESTIONS ON HOW TO DO THIS WOULD BE WONDERFUL!!

View Replies !    View Related
Why Doesn't My External Preloader Work In MX 2004 (look At Code0?¿¿¿
-----------This code is on the empty MC container.

onClipEvent (load) {
loading = true;
}
onClipEvent (enterFrame) {
if (loading) {
if (this.getBytesTotal()>_root.baseSize) {
percent = this.getBytesLoaded()/this.getBytesTotal()*100;
trace (percent);
_root.loadingBar.bar._xscale = percent;
if (percent == 100) {
loading = false;
_root.loadingBar._visible = false;
this.nextFrame();
}
}
}
}


--------------this is the code on the button

on (press) {
container.loadMovie("flash.swf");
_root.loadingBar.bar._xscale = 0;
_root.loadingBar._visible = true;
}

------------this is the code on the load bar

onClipEvent (load) {
this._xscale = 0;
}

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

here is a link to my file

link

Thanks, Montara

View Replies !    View Related
[F8] External JPG Loads Into MovieClip, But Mask Doesn't Work, JPG Not There
It's all in the title!

I'm loading a JPG into a movieclip. This movieclip has an animated mask on it.

The picture definitely loads as the preloader percentage I have is working! But when it reaches 100% and is told to start the next frame of the movieclip, the animation works (2 lines crossing paths, mask rectangle grows to show photo) there is NO PHOTO!

What should I be looking for? Can this be done in Flash 8? (Mask Moviclip with external JPG)

Urgnetly need help! Thanks!

View Replies !    View Related
Callback In Dztween Doesn't Work Properly In External .as File
Hi

I tried to callback after a tween function(from dztween.as) finishes and it doesn't work properly.

1. Include the scope directly, but the global variable "f" is not updated.


Code:
class Test{

var f:Boolean = false;

public function Test(){
rect.tween(["_x", "_y"], [x_position, y_position], 1, "easeOutCubic", 0, this.move_finished);
}

public function move_finished():Void{
f = true;
}

}
2. Include the scope inside {}, but move_finished() is not called at all

Code:
class Test{

var f:Boolean = false;

public function Test(){
rect.tween(["_x", "_y"], [x_position, y_position], 1, "easeOutCubic", 0, {scope: this, func: move_finished);
}

public function move_finished():Void{
f = true;
}}
2. Include the scope inside {} and put the "()" after function name, f is updated instantly without waiting for the tween to be finished

Code:
class Test{

var f:Boolean = false;

public function Test(){
rect.tween(["_x", "_y"], [x_position, y_position], 1, "easeOutCubic", 0, {scope: this, func: move_finished());
}

public function move_finished():Void{
f = true;
}}
Any help would be really appreciated, thank you in advance

View Replies !    View Related
Loading External HTML File Doesn't Work With All Browsers
I'm loading an external HTML file (it's valid and all, has doctype, and meta tags if that matters) into flash. I've attached the code that does the loading. When it's loaded locally, it always works, but when it's loaded from the Internet, it doesn't always work in all browsers. Safari seems to work all the time, Firefox can be a bit fussy about it, and Opera seems to have problems. When I say it doesn't work, I mean the text doesn't get loaded, so the area where it should be is left empty. Is there any other way I can do this? It seems that if I put the text in flash, it has to be on one line, which is very annoying. The formatting gets screwed up if I do this too.









Attach Code

var loadVarsInstructions:LoadVars = new LoadVars();
loadVarsInstructions.onData = function(htmlInstructions:String):Void
{
instructions.htmlText = htmlInstructions;
}
loadVarsInstructions.load("instructions.html");

View Replies !    View Related
Importing External Files: Preview And Browser Works, But It Doesn't Work With Player
Basically, when I import external .swf files or .xml files, I can usually see them perfectly fine in browsers and in preview windows. But when I try to run them separately using Flash Player, it doesn't show them at all.

Is there something simple I could be overlooking that is causing this? Or is there something wrong with my Flash Player?

The program I use is Flash MX Pro, and my Flash player is Flash Player 6. I've tried updating my Player using Macromedia.com, but I have a feeling that it's only updating the browser plug-ins and not the player itself.

It's not really a problem, but if it's something that will cause a certain percentage of people to not be able to see my stuff, it could be a potential problem.

View Replies !    View Related
How To Make Print To External Movie.
Hi,

I have a problem with movie file.

I want to give a print to other one movie file. I m explain you now I need proper.

I have abc.swf file that file has one button like “ Print”. Also have other one swf file that name is xyz.swf.

Xyz.swf file has one form that I want to print. When I click on the print button in the abc.swf file.

So, anybody know what I need to do?

Thanx,
Nilesh

View Replies !    View Related
Loading External HTML To HtmlText Field Doesn't Work Properly If The Text Is Not BOLD
I have two textboxes. Both are set as HTML.

The first one has a routine inside the Flash file itself, to fill it up with a list of dates and event names.

This first one generates links that go something like this:


HTML Code:
<a href="asfunction:_root.fillHomeTextBox,load_demo.php">
And when these links are clicked, the load_demo.php contents are properly loaded, and fills the second HTML textbox via the fillHomeTextBox function (I suspect it's not necessary but I'll paste that function here anyway):


ActionScript Code:
fillHomeTextBox = function(url) {
    myData2 = new LoadVars();
    myData2.onLoad = function(){       
        trace(this.content);
        _root.pages001.page_home.block1.homeTextBox.htmlText = this.content;
    };
    myData2.load(url);
}

My question is that I cannot get non-bold text to load. It seems like text is only recognized if wrapped inside
HTML Code:
<b> </b>
tags.

I will paste one example of code that works (generated by load_demo.php) that works, and what doesn't work (which I want to work, as I don't want everything in bold).

ALL IN BOLD - Works (I've upcased --here-- the relevant "B" tags for ease of spotting for comparison with the bit of code right after this next one):


Code:
content=<b><font size='25px'>Quinta 13/Set</font><br><font size='20px'>Monsieur Pelota</font></b><br><br><B><font size='12px'><img width='100' height='100' src='dddf3b4.jpg' align='left' hspace='5' vspace='5'>André Soares starts his adventure as a dj in 1998 (...)</font></B>
WITHOUT BOLD IN THE LAST BIT - Stops working (for that part, keeps displaying the first part of text, and the picture):


Code:
content=<b><font size='25px'>Quinta 13/Set</font><br><font size='20px'>Monsieur Pelota</font></b><br><br><font size='12px'><img width='100' height='100' src='dddf3b4.jpg' align='left' hspace='5' vspace='5'>André Soares starts his adventure as a dj in 1998 (...)</font>
I've tried to use SPAN, P... but nothing works. B for some reason, does. This is with Flash 8 and AS 2, by the way.

I am really lost with this, it's been more than 24 hours and I haven't found a solution yet.

Any help is immensely appreciated!

-Ricardo

View Replies !    View Related
Why Doesn't This Movie Clip Work Right?
OK, check it out. I have an item in my library called gauge which is simply a graphic meant to represent a variable. When I have the variable declared locally, i.e. in the movie clip itself, it works great. But for some reason I can't get it to function with a global variable from the main movie.

Please let me know what I am missing.

If my description is puzzling or you think you can help but my pathetic rambling is incoherent you can email me at: destinova@alternity.net

Thanks

View Replies !    View Related
Button Within A Movie Doesn't Work Help
Hi there..need help to finish my website...
I got a button within a movie clip due to an actionscript
attached to it, if I program the button to go to another
scene such as
on (release) {
_root.gotoAndPlay ("scene2" ,1);
}
it doesn't do anything...

then I programmed different way:
on (release) {
gotoAndPlay (2);
}
where on the same movieclip on frame 2 I put a :
_root.gotoandplay ("scene 2" ,1)

still nothing....IT is a bug?
help

View Replies !    View Related
Attaching A Movie - Doesn't Work
Hello!
I have a button on stage which when clicked will display a movie clip from my library. I have attached the following script.

on (release) {
_root.attachMovie(menu1, submenu1, 1);
}

on (release) {
this.attachMovie(menu1, submenu1, 1);
}

where menu1 is the identifier name I had given in the symbol linkage box.

It doesn't work. What could be wrong. Can anyone help. Also if anyone can give example of a good navigational system in Flash.

Thanks.

View Replies !    View Related
Alpha Doesn't Work In Movie
Hello every one.

I seem to have a strange problem.
When I export a movie with alpha in it, the alpha doesn't show in the movie, although it's there in the fla file.
Any ideas any one?
I'm using Flash MX on MacOS X.

Thanks!

Maarten
Amsterdam, Netherlands

View Replies !    View Related
When Your Movie Doesn't Work In A Browser
So I've got a movie that works absolutely fine in a standalone player, but when it goes through a browser makes me look like a fool.

It's pulling xml files, running them in an array then displaying the content. Except it just doesn't do it when in a browser. At first I thought it was related to the whole flash security thing (which is a load of crap, poor excuse to keep flash from being able to replace the need for browsers). But it pulls the menu xml fine. I can't figure out if it's pulling the content xml or not, but it's definitely not displaying the data. Besides all of the xml files are local on the server. So what am I doing wrong?

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