GetUrl Fails
getUrl Fails!When using in Flash 8
getUrl("http://www.actionscript.org");
Comes with output fail!
Anyideas why??
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 08-22-2006, 01:47 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
GetURL Fails In IE
Hi,
All getURL calls are failing in my swf in IE whilst working in every other browser.
Using:
Code:
getURL(myURL, "_blank", "GET");
http://www.loopbrighton.com
Any ideas?
Thanks
GetURL In A Mac Projector Fails
So I am creating two Flash Projector files, one for PC and one for Mac. I have a getURL button that works fine on my PC .exe but will not open a window in Safari from my .hqx. It does work in Mac ie though. Anyone come across this or have a solutions?
Thanks in advance,
Pete
GetURL Fails In Firefox On PC Only
Links are failing in Firefox on a PC (macs work, IE works on pc and mac, safari works)
http://www.paracletepress.com/index.html
It works if I view the swfs directly without embed eg:
http://site.paracletepress.com/sections/tabbedAd.swf
Please help!
Here's what I'm doing with the link
Attach Code
on (release) {
//Goto Webpage Behavior
getURL("http://www.paracletepress.com/baptism.html");
//End Behavior
}
Flash 7 GetURL Fails In IE7
I have an old Flash file that must remain published to Flash player 7. I'm experience a complete failure of communication to JavaScript in IE7 when using getURL(), and am unsure how to resolve this issue.
A call to a JavaScript function on the page fails. Even a simple call to make an alert happen fails:
btn.onRelease = function() {
getURL("javascript:alert('you clicked me')");
}
I'm using the AC_RunActiveContent.js to embed the *.swf (via the export to HTML).
This does work when viewed in Firefox 2. How many others have run into this? What are workarounds or alternatives?
GetURL Following A LoadVars Fails On MAC IE?HELP
I've created a little login flash file which talks to a php script before kicking to a new URL. It works fine on every browser I've tested except IE versions on the MAC. MAC IE browsers (both 4.5 and 5)pop up an alert window which reads:
The attempt to load: 'Accessing URL:http://www.bitcasters.com/logintest/noerror.html' failed.
http://www.bitcasters.com/logintest/...ogin_test.html
The above html file holds the following swf:
http://www.bitcasters.com/logintest/...login_test.swf
http://www.bitcasters.com/logintest/...login_test.fla
The above swf sends some variables to the following php file, which returns success=1
http://www.bitcasters.com/logintest/...login_test.php
When the above swf receives success=1 it runs getURL action to the following url:
http://www.bitcasters.com/logintest/noerror.html
The login_test.php file is as follows:
<?php
echo "success=1&EOF=";
?>
I've tried breaking it down to the bare bones to see where I've screwed up or overcomplicated things, but I can't figure it out.
I've looked through technotes, newsgroups, message boards to no avail.
Any help on this would be greatly appreciated.
Thanks in advance,
J.J.
GetURL Fails Silently In Browser
Hi,
I have a very simple Flash app that is basically just a set of links for a company home page. I've used getURL to direct the users to a number of web sites (e.g. Google, a train timetable website, a telephone directory website - and so on). It works fine when I run the swf directly on my test PC. However, when I run the html file (produced by the Flash Publish function), rather than the swf file, the app works but nothing happens wjhen I click on the links. It is as if getURL was being ignored.
I have tried this using swf files saved in Flash 8 or Flash 7 versions, and in IE 6 and 7 browsers.
Can anybody help. The purpose of the app is to provide the users with links, but as none of the links work it is pretty useless.
Ian
GetURL Fails On MAC HQX Running Safari
Hey anybody faced this problem before ?
It's incredulous that this kind of bug still exists in the real world.
My flash movie, has button.
Buttons call getURL.
Most URL's in the getURL command are of form:
www.yahoo.com or http://www.yahoo.com
I've tried _blank, _parent etc etc
GET POST (allthough I have nothing to send here)
excellent ?
On my brand new MAC g4 laptop, running OS 10.1:
Safari opens a window (), but is unable to set the URL, and just sits there.
it's incredible.
Somebody please tell me that this is not happening to me.
regards,
joydeepm.
GetURL With #target Fails To Work On Webpage :(
Guys I use flash to make my menu - now when I use the getURL command - after the link to the webpage (for example: pictures.html) I included the #target command so it will go to a specific image on the webpage that it will load (so it's pictures.html#target).
Now when I test it in flash - it gets the webpage and target fine so it takes me to the specific image and everything works well!
But when I publish and load the menu onto my webpage in Dreamweaver - and then try to test it on the webpage itself - it only goes as far as loading the webpage when I use the link and it won't take me to the target
Any ideas why? I had some thoughts that maybe it unloads the page where the link was used so it doesn't get as far as to load the #target part - but I'm not sure if that's the case
GetURL Fails On Runtime Library Button
After years of estrangement, I'm embracing Flash once again. I have a little project I'm working on, but have faltered right out of the gate...
I created a shared library with a single, relatively simple button with a clip in the over frame. For the button symbol, in Linkage I chose:
Export for runtime sharing
Export in first frame
URL: shared_lib.swf
I published the library, then closed the .fla. I created a new test.fla and chose "Open External Library" and surfed to the shared_lib.swf.
The shared library opened as it should, with my simple button available. I dragged the button to the stage of the new test.fla, then checked its properties. Sure enough, "import for runtime sharing" was selected. I tested the movie, and the button (and its rollover clip) worked perfectly.
Here's where it fails. I assigned an action to the button
on (release) {
getURL("
IE7 Local Trusted SWF GetURL Fails Silently.
i've got my swf in the local trusted sandbox by using an installer that created a trustFile as documented by this technote:
http://www.adobe.com/devnet/flash/ar...ity_print.html
"local trusted" should give me all access, but IE7 will not perform a simple getURL:
Code:
getURL("javascript:alert('you clicked me')");
firefox will perform this action.
the swf is local access only (i've tried the network only as well) and there is a file located in this directory that gives the swf trust status.
Code:
C:Documents and SettingsYourUserNameApplication DataMacromediaFlash Player#SecurityFlashPlayerTrust
To recreate my problem, place a txt file in the above directory with a absolute path to your text swf (example: C:Documents and SettingsakennedyDesktopdemoLauncherfiles) then create a swf with a simple button that calls the javascript above.
the html embed code should have these parameters added:
"allowscriptaccess", "true"
"allowNetworking", "all"
you can check what sandbox you are in by using this code on a dynamic text field:
Code:
poo_txt.text=System.security.sandboxType;
can anyone get IE7 to communicate with javascript locally?
could someone please confirm?
thanks,
GetUrl Using "_top" Within An IFrame Fails
My flash video is playing with an 300x250 iframe within my webpage and at the end of my flash video, I am calling getUrl to redirect the page to another webpage but the redirect webpage is either showing within the small iframe iteself or the whole page goes blank if I se _top or _parent as a parameter within the getUrl call. Any ideas?!
I thought of doing something like:
getUrl('javascript::getElementById("iframe").src = "
IF All ELSE Fails
Hello
I want to make this code work with if , if else and else statements. _level6.choice is my variable. can someone please show me the right way to script it. THANX for your help.
if (_level6.choice == "illu") {
}
tellTarget ("_level3.illu") {
gotoAndPlay (2);
}
if (_level6.choice == "pac") {
tellTarget ("_level4.pac") {
gotoAndPlay (2);
}
if (_level6.choice == "design") {
tellTarget ("_level5.design") {
gotoAndPlay (2);
}
}
}
When All Else Fails....ask Someone Smarter Than You
Hi, I'm wondering if you can help me...
You see I have a movie clip with 10 frames and a keyframe on frames 1, 5, and 10. Frame 1 is labeled "roll" frame "5" is labled "middle" and frame 10 is labled "click". Within each keyframe is a stop action. When the movie reaches frame 10 there is a stop action and a tell target action which tells another movie to play. This is for an interface I am creating. The movie is set up so that there is an invisible button over the movie clip which controls it. I have been attempting to find out how to make it when I roll over the button, the movie will play from frame 1 to frame 5 and stop, and then when I roll off of it, it goes back to frame 1. Easy enough, but here's where I get hung up: I want to make it so that when its clicked, it plays from frame 5 to frame 10 and stops and STAYS there weather the user rolls over it, clicks it again, whatever. I have been trying to use the "if / else if" and "_currentframe" commands, but it is bearing no fruit. I hope somebody can give me a hand.
Thanks
Actionscript Fails On Mac
I've created 2 Flash5 games that work on PCs and fail on Macs. Anyone know what might cause this?
In this game the character that is supposed to be controlled by the arrow keys just flips back and forth on his own:
http://www.jlf.com/eg/games.htm
In this coloring game, the palette squares are black on Macs:
http://www.jlf.com/eg/coloring.htm
Thanks for any advice...
Windows Xp Fails
Thanks for the help...
I am testing my site on Windows XP (locally). I can see executables but the .swf's are hanging up when I try to view them in Windows Internet Explorer.
Does anyone have a clue?HELP!!!!!!!!!!!!!!!!!!
J
Preloader Fails
Hello,
I,ve made a movie but when I publish this movie and look at the Bandwith profiler, there's a bar in frame 1 which reaches 512 kb..
I think that's why my preloader failes...
Who's got a solution???
tnx...DEQ
Do Something When LoadMovie Fails
im loading JPGs using loadMovie, and i want to load an external SWF in case the especified JPG doesnt exist...
i got
Code:
if(presion.ventana_mc.target_mc.loadMovie(contenido[Number(numero)][1]) == undefined){
presion.ventana_mc.target_mc.loadMovie("nodisponible.swf")
};
but that just loads the "unavailable" SWF even if the JPG exists. what does LoadMovie return when it fails? thoght it was undefined.
Pre-loader Fails.
My preloader script uses getBytesLoaded() and getBytesTotal() but still takes way too long before the getBytesLoaded changes from 0 to anything more.
Basically, the movies (when using the loadmovie() command won't load, or very very very slowly).
getBytesTotal also gives a suspicious -1 reading.
Anyways, if you need the .fla just ask.
My website can be viewed at:
http://www.art-team.ca/f4f/index.html
Substr Fails
Hi everybody,
I am attempting to extract a substring from a string as the heading would suggest unfortunately I am getting an error substr method does not exist, every time ?? What is this ? I am coding is as 2, so there may be something I am missing. HAve tried everything. But she no worky.
Cheers everbody.
Actionscript Fails - Why?
can you spot what is wrong with my code
I have 3 checkboxes on scene 1 of the movie. When one is clicked the other 2 should be cleared. The initial value of the first checkbox (instance name is biking) is set to true and the other 2 (walking and running) are set to false.
At the moment all 3 can be checked - this should not be allowed by my code - the code below is in an action layer frame 1 and the checkboxes have a change handler set (called checkChanged, checkChanged2 and checkChanged3).
Points of interest I have noticed are:
1. The trace bit fails to execute if its put inside the if conditional.
2. I can get the trace to work inside the if conditional if I change the double equals to a single equals
code:
function checkChanged(){
trace("check box 1 changed");
if(this.selected == true){
_root.running.selected = false;
_root.walking.selected = false;
}
}
function checkChanged2(){
trace("check box 2 changed");
if(this.selected == true){
_root.biking.selected = false;
_root.walking.selected = false;
}
}
function checkChanged3(){
trace("check box 3 changed");
if(this.selected == true){
_root.biking.selected = false;
_root.running.selected = false;
}
}
I really would like some light shed on this if you can please. Just a novice though so please spell out in idiot proof language whats going on and how do I get it to work. I know radio buttons is a better choice but this is a learning exercise and a challenge I have set myself. I use Flash MX
[F8] Exporting Fails
I've used Flash for years and years, and all of a sudden, a flash file that I have won't compile!
When I hit CTRL-ENTER, the small progress window labeled ("Exporting Flash Movie") shows, but then the .swf never launches! No .swf file is being compiled either.
What is wrong here? I've tried nearly all publish settings there are!
Help deeply appreciated!
CreateChildAtDepth Fails
For reasons not clear to me (no duh), createChildAtDepth (within a UIComponent derived object) fails while attachMovie (for the same symbol) works. Debugging into UIObject.createObject (which calls attachMovie) does not reveal anything of interest (all fields look to be correct), yet it returns null. If I directly call attachMovie, all works as expected.
Any ideas as to what could be in error? Is there any way to debug further into these types of problems (under Mac OS X 10.4)?
LoadMovie Fails?
Hi all, after months with C# now I'm back with actionscript. The last time I tested my site in my local server (February 2006) it was working and when I tested it this morning the banner won't display. It's working when I run the .swf file that loads the movie but fails if I run it in my server, what's wrong?
Only Fails When Uploaded....
Main movie wont load into preloader only when uploaded to web.
main movie and preloader in same folders on Local and Remote.
Works perfect when tested in local but when uploaded to http://www.stacycannady.com/index2.htm
Preloader wont load my main movie.
I used this tutorial, http://www.webwasp.co.uk/tutorials/b...Ex-SWFs/08.php
which worked great, but I cant figure out WHY it wont once uploaded.
Any Ideas? Anyone have similar problems? Suggestions?
Any appreciated!!
Mc In Timeinterval Fails?
Hi,
I can't access the properties of a MC in a function using array notation.
eg this works when using mc2 but fails when using this["mc"+2]._x?
I need array notation for mc but I can't get it to work in a function called by a timer. It works for a function not called by a timer.
Code:
tum=setInterval(fade,10,swap);
function fade(a:Number):Void
{
//if (a>0)trace(a);
i=3;
j=2;
//trace(this._parent["mc"+2]._x);//undefined
trace(this["mc"+2]._x); //undefined why?
trace(j);
this["mc"+2]._x=10;
trace(this["mc"+2]._x);
trace(mc2._x);//works
//trace(mc2._x);
if (this["mc"+j]._parent._x >=0)
this["mc"+j]._alpha -=1;
if (this["mc"+i]._parent._x <=100)
this["mc"+i]._alpha+=2;
if (this["mc"+i]._alpha >=100)
{
//trace(a);
a=a+1;
clearInterval(tum);
// tum=setInterval(fade,10,a);
}
}
q)The reason I am doing this is to create a MC that loads a different picture every minute that you see everywhere. Now the setInterval fails to do this so do I need to use a getTimer to measure time?
SetSelection Fails
Can anyone help me make a text selection when focus is set?
I have tried the code below but the setSelection command is ignored.
ActionScript Code:
var _focusListener:Object = new Object();
//when textfield is chosen, set selection:
_focusListener.onSetFocus = function(oldSelection, newSelection){
trace("oldSelection: "+oldSelection+", newSelection: "+newSelection);
Selection.setSelection(0,3);
}
//
Selection.addListener(_focusListener);
Localconnection Fails
Hello people!!
I didn't knew where to post this message...
I'm using FLex builder 3, I'm trying to communicate a swf with a localConnection send, with A flex 3 script code but seems to fail.
I've tried to communicate to movies swf and I can.
Anyone have a suggestion?
Flash Code:
var outgoing_lc:LocalConnection = new LocalConnection();
outgoing_lc.send("lc_example", "methodToExecute", "hello from flash!!!!!!!")
Flex code:
<mx:Script>
<![CDATA[
import flash.system.fscommand;
import flash.net.LocalConnection;
import flash.errors.*;
import flash.system.Security;
private var incoming_lc:LocalConnection;
private function init():void {
incoming_lc = new LocalConnection();
incoming_lc.client = this;
try {
incoming_lc.connect("lc_example");
} catch (error:ArgumentError) {
sentMessage_txt.text = "Can't connect...the connection name is already being used by another SWF";
}
}
public function methodToExecute(msg:String):void {
sentMessage_txt.text = msg;
}
private function quit():void {
incoming_lc.close();
}
]]>
Thanks for read
Installation Fails
what I had to do to get flash to install
It is a tossup at to who has the worst software Billie gates or Adobe Flash Player ( AKA MacroMedia ). When I would
click on a site or link that required flash to work, I would get a message that I needed Flash Player and a link to
download it. When I clicked on the link, it would take me to the Abode Flash Player link. The only option is the
" INSTALLATION" botton. So, I clicked on it.
Then I get this:
When you see the installation completion movie above and text below, your installation was successful. The installation should only take a minute or two on a 56k modem.
And then NOTHING would happen it would just sit there for ever. The installation NEVER happened. It did not work.
I finially figured out the if I go to START/RUN/
then type the in the open box C:WindowsSystem32MacromedFlash
then click OK
It takes me to that file location on C: drive
where there are 4 file
then I double click on the file named FlashUtil9b.exe ( it is the file with the funnie looking "F" inside a circle )
After double clicking on FlashUtil9b.exe file a window/box installer runs and Flash finally gets installed.
I had to totally shut down my computer and/to reboot before Flash would work.
I am still not sure if this Mickie Mouse Giration has to be preformed to get the software to install is because of
Adobe Flash Player ( AKA MacroMedia ) or Billie gates ( AKA Mr. softie ) most likely BOTH.
good luck
SWF Fails In A Table?
I've got a SWF that simply doesn't show up once I put it in a table on a
page.. its fine outside of a table cell.. any thoughts on why this might be
happening?
Click Fails
I create a MC at runtime and add an image to it . I can't click on the image and the MC4.onPress is defined. It loads the symbol correctly can't click on it.
Is there a way to keep this MC on top of all others without using swapdepth etc. They way I do it is create the MC last.
function createShifters():Void{
this.createEmptyMovieClip("mc4", this.getNextHighestDepth());
mc4.createEmptyMovieClip("mc44", mc4.getNextHighestDepth());
mc4.attachMovie("move1","mc44",mc4.getNextHighestD epth()); //not clickable
mc4._x=46;
mc4._y=250;
//trace(mc4.getDepth());
}
Flash/php Fails
I am using flash/php and are getting errors on php (free web hosting site) which i don't get on my localhost.
I don't get any error on my localhost but i get 3 error which I can't fix.
flash part
---
send_lv.alName=combo1.value
send_lv.sendAndLoad("
NetConnectionDebugger Fails
Hi,
I am working on .Net + Flash application. The Problem I encountered is below.
Flash MX + .Net 2003 + Flash Remoting for MX
I have flash player embedded in aspx page which fetched XML data from C# pages through .Net remoting for MX.
The code works perfect with data less than 70KB
But if the ASOBJECT returned from C# assembly (dll) through flash remoting to Flash is more than 72 KB it fails i.e. no function associated to service function call _RESULT or _STATUS is called
returned from C# dll is ASOBJECT type
Is there any data length restriction while calling services through flash remoting?
Thanx for any help in advance.
code snippet is written below:
--- Code starts here ---
flashService.GetInstData(parseInt(_global.InstID), parseInt(_global.CandidateID_str));
function GetInstData_Result(result) {
XMLData_str = result["Inst_XML_str"];
_global.InstrumentDataLoaded = true;
}
function GetInstData_Status(result) {
_global.InstDataLoaded = false;
sendError();
}
-- Code ends here --
The above code works perfect if size of data returned is less than 70KB.
Mc In Timeinterval Fails?
Hi,
I can't access the properties of a MC in a function using array notation.
eg this works when using mc2 but fails when using this["mc"+2]._x?
I need array notation for mc but I can't get it to work in a function called by a timer. It works for a function not called by a timer.
[CODE]
tum=setInterval(fade,10,swap);
function fade(a:Number):Void
{
//if (a>0)trace(a);
i=3;
j=2;
//trace(this._parent["mc"+2]._x);//undefined
trace(this["mc"+2]._x); //undefined why?
trace(j);
this["mc"+2]._x=10;
trace(this["mc"+2]._x);
trace(mc2._x);//works
//trace(mc2._x);
if (this["mc"+j]._parent._x >=0)
this["mc"+j]._alpha -=1;
if (this["mc"+i]._parent._x <=100)
this["mc"+i]._alpha+=2;
if (this["mc"+i]._alpha >=100)
{
//trace(a);
a=a+1;
clearInterval(tum);
// tum=setInterval(fade,10,a);
}
}
[/CODE]
q)The reason I am doing this is to create a MC that loads a different picture every minute that you see everywhere. Now the setInterval fails to do this so do I need to use a getTimer to measure time?
Edited: 03/18/2007 at 03:31:23 AM by jagguy99
AttachMovie Fails
hi,
i'm trying to attach a symbol to a loaded clip so far unsuccessfully. i've
found older threads in this forum, tried to implement what i've found there,
but that didn't help either.
this is my basic code:
function loadLogo(lFile){
var mclLogo:MovieClipLoader = new MovieClipLoader();
var logoListener:Object = new Object();
logoListener.onLoadInit = function(target:MovieClip){
inv = setInterval(_level0, "loadComplete", 1000,target); // using
this interval to make sure the clip is completely loaded
}
mclLogo.addListener(logoListener);
mclLogo.loadClip(lFile,this.logo_mc);
}
loadComplete = function(_mc:MovieClip) {
var tt:MovieClip = _mc.attachMovie("toolTip","tt_mc",1);
trace(tt); // always returns 'undefined'
tt._visible = false;
_mc.onRelease = function() {
// some code
}
_mc.onRollOver = function(){
// some more code
}
_mc.onRollOut = function() {
// and here too..
}
clearInterval(inv);
}
loadLogo("logo.jpg")
// end of code
i have on the stage an empty movieclip 'logo_mc', and in the library a
symbol with the linkage identifier 'toolTip'.
the logo loads fine, but after a second in get in the message window
'undefined'
any tips?
thanks in advance,
eRez
www.cinabu.com
Code Fails In AS 2.0
Hi,
The flash swf that I have was published in flash 6, AS 1.0. I changed the publishing to use AS 2.0 to take advantage of some new features and my scroll functions have quit working. I believe the code issue is in the code block below:
Actionscript from the "Content" MC which contains a series of 6 images that are scrolled through:
Code:
onClipEvent (load) {
//accel = 0.6;
//rate = 0.2 ;
accel = 0.6;
rate = 0.03;
_root.pos = this._x; //start position
}
onClipEvent(enterFrame) {
xkoord2 = _root.pos - _root.press *_root.width;
x=x*accel+(xkoord2-_x) * rate;
_x+=x;
if(Math.abs(_root.xkoord2-_x)<1) { _x=_root.xkoord2; }
}
The "Content" mc is then loaded into another mc ("pic6 page") which contains a mask layer that covers 3 of the six images in the "Content" mc. With the "pic6 page" mc I have the following actionscript:
Code:
_root.left = false;
_root.n = 6;
_root.press = 0;
_root.width = 280;
Since switching to pubish in AS 2.0 the scroll feature goes way to far to the left instead of just showing the next 3 images and stopping.
Any help would be greatly appreciated.
thansk
Fails In HTML
I've got two .swf files. One index.swf that imports navigation.swf using loadMovieNum("navigation.swf",10);
the .swf files work perfectly in Flash player and in a browser, but when I link from an HTML document, the index.swf fails to import the navigation.swf
thanks in advance
Actionscript Fails - Why?
can you spot what is wrong with my code
I have 3 checkboxes on scene 1 of the movie. When one is clicked the other 2 should be cleared. The initial value of the first checkbox (instance name is biking) is set to true and the other 2 (walking and running) are set to false.
At the moment all 3 can be checked - this should not be allowed by my code - the code below is in an action layer frame 1 and the checkboxes have a change handler set (called checkChanged, checkChanged2 and checkChanged3).
Points of interest I have noticed are:
1. The trace bit fails to execute if its put inside the if conditional.
2. I can get the trace to work inside the if conditional if I change the double equals to a single equals
[as]
function checkChanged(){
trace("check box 1 changed");
if(this.selected == true){
_root.running.selected = false;
_root.walking.selected = false;
}
}
function checkChanged2(){
trace("check box 2 changed");
if(this.selected == true){
_root.biking.selected = false;
_root.walking.selected = false;
}
}
function checkChanged3(){
trace("check box 3 changed");
if(this.selected == true){
_root.biking.selected = false;
_root.running.selected = false;
}
}
[/as]
I really would like some light shed on this if you can please. Just a novice though so please spell out in idiot proof language whats going on and how do I get it to work. I know radio buttons is a better choice but this is a learning exercise and a challenge I have set myself. I use Flash MX
Sound Stops But Fails To Go To New Url
I want to play some music when the web site is loaded. Then after the music stops, I would like the browser to go to another page. I have added a frame after the sound frame with the action -> Get URL ("http://www.sanctuaryofpraise.org/sanctuary.html"), but it will not go. What am I doing wrong?
Thanks
'mc.onLload' Fails With 'createmptymovieclip' ***************
situation:
i have a movieclip "Mymc" and i want to create a dynamic script which fades in the movieclip "mymc" to 100 and when that's done, i want to remove the script.
So i create an empty movieclip and then i attach a mc.onload en mc. onEnterFrame function to that script.
The mc.onenterFrame works but the mc.onLoad FAILS.
Can anyone help me !?
Tx in advance
Code:
this.createEmptyMovieClip("script",1)
this.script.onLoad=function(){mymc._alpha=0;trace("set alpha of mc to zero")}
this.script.onEnterFrame=function(){
if(mymc._alpha>=95){
trace("remove")
mymc._alpha=100
delete script.onEnterFrame
}else{
mymc._alpha+=5
}
}
CreateTextField Fails On Server
In my movie 'aboutus.swf', I created a textfield like this:
Code:
this.loadVariables("texts/aboutus.txt");
myFormat = new TextFormat();
myFormat.font = "Verdana";
myFormat.size = "10";
myFormat.color = "0xFFFFFF";
//-------------------------------
this.createTextField("aboutus", 1, 120, 60, 585, 280);
this.aboutus.multiline = true;
this.aboutus.autoSize = true;
this.aboutus.wordWrap = true;
this.aboutus.selectable = false;
this.aboutus.html = true;
//-------------------------------
this.onData = function() {
this.aboutus.htmlText = mytext;
this.aboutus.setTextFormat(myFormat);
}
The aboutus.swf is loaded into a movieclip into main.swf. Everything works great locally, but once I put it on the server, the createTextField fails. At least I think that is what fails.
The aboutus.swf has definataly loaded.
I can see the aboutus.txt in the browsers cache.
I can see there is a textfield on the main.swf, because when I mouve the mouse in that area a textcursor shows up, although I set the textField NOT to be selectable.
I used this code in the main.swf to make all characters show:
Code:
System.UseCodePage = true;
Any help would be great.
Check here to see what is does. Or does not do.
http://www.thewizard.be/option/flash
Function Call Fails
This is driving me nuts. It must be something very simple but I can't see it.
Okay here we go:
On the main timeline I've got:
"
this.createEmptyMovieClip ("roll", 2)
buttonRoll = new Sound("roll");
buttonRoll.attachSound("roll");
buttonRoll.setVolume(20);
_global.interfaceSound = function (soundType) {
soundType.start();
}
"
and i've got the following actions applied to a button in a movie on the main timeline called "navigate":
"
on (rollOver) {
interfaceSound(buttonRoll);
}
"
The aim is to have the function "interfaceSound" be called with the parameter "buttonRoll" so that the sound will play.
The function works if called from the main timeline but from the button in the movie "navigate" it doesn't.
HELP!
Thanks,
K
Movie Fails To Load
i have a site that is made with dreamweaver mx and flash mx, the flash movies are imbedded into the dreamweaver tables, each page has a seperate movie which loads when the page opens. on one page the movie fails to load i have tested it offline from dreamweaver but once its uploaded it will not work. everything seems to work fine untill its uploaded, any ideas would be appreciated
Function Fails In Context
Can anyone help me please?
I have a little nugget of code that finds the highest value in an array. The code works fine when placed in an empty .fla file.
When I drop it into the code I am working on, it just doesn't respond. Can anyone help me out please.
Thank You,
Tim.
Code:
if (not start) {
// load variables
loadVariables("sampledataset2.txt",_root);
start = true;
trace ("started");
}
// check variables are loaded
if (xyLoaded == "true") {
trace ("loaded");
////////////////////////////////////////////
//This is the nuget of code. If you try it in an empty .fla and it
//works fine. Here though it doesn't respond.
////////////////////////////////////////////
sampleArray = new Array(1,2,3);
arrayHighest = new Array();
//
function highest(array) {
trace ("array: "+array);
var arrayLength = array.length;
var highestNumber = 0;
for (j=0; j<arrayLength; j++) {
if (Number(array[j])>highestNumber) {
highestNumber = array[j];
}
}
arrayHighest.push(highestNumber);
}
//
highest(sampleArray);
trace ("arrayHighest: "+arrayHighest);
//////////End of nugget/////////////////////
play ();
}else{
gotoAndPlay(_currentframe-1);
}
P.S. The main code has been cropped a bit so I dont post too much, it normaly sits on frame two of a three frame .fla
I have included a "sampleArray" with values of 1,2 and 3. This is just to test the highest() function.
Remoting - Second Call Always Fails?
K, Im at my wits end here
I am running a test FlashCom server with Remoting on it. The remoting methods connect to a .DLL and retrieve/store information to the DB (e.g. getting the presentation name, length etc.., and then when its done update some values in the DB to let me know the presentation has ended).
Now, the Remoting works fine, the DLL works fine, BUT the Second call ALWAYS fails.
So, the PCN_GetShowInfo method works, but the PCN_StoreShowInfo fails. If I comment out the call in GetShowInfo , the second one works.
No error gets report through FCS. It traces the calls letting me know the functions are called, but the second Remoting call never gets instantiated.
I dont call a Close anywhere, so Im at a loss as to why it wouldnt work. Any1 got any advice? (code below).
Thanks!
Unverse
Client.prototype.GetShowInfo = function(ShowKey){
if (inited == 0){
inited = 1;
trace("REMOTING: Getting Show Info");
PCN_GetShowInfo_Result = function(result) {
trace("Getting Results : PCN_GetShowInfo_Result");
trace(result);
PresenterName = result[0];
ShowID = result[2];
ShowLength = result[1];
}
PCNRemoting.PCN_GetShowInfo(ShowKey);
}
}
Client.prototype.StoreShowInfo = function(ShowStatus,ShowID){
trace("REMOTING: Saving Show Status for ShowID# " + ShowID + " and Status "+ShowStatus);
PCN_StoreShowInfo_Result = function(result) {
trace("Getting Results : PCN_StoreShowInfo_Result");
trace(result);
}
PCNRemoting.PCN_StoreShowInfo(ShowStatus,ShowID);
}
LoadVars Says It Fails When It Works (?)
I don't get this... I'm sending stuff to my PHP script. I hit the button, it calls this function, sends the data, the vote stuff is done correctly server-side, everything works perfectly. Except I get the trace saying "Failed".
code:
function addVote(num) {
voting = new LoadVars();
voting.vote = num;
voting.mode = "vote";
voting.uid = _root.levelNum;
voting.onLoad = function(success) {
if (success) {
voteStatus.text = "Vote added.";
} else {
trace("Failed");
}
};
voting.sendAndLoad("http://www.mywebsite.com/myscript.php", voting, "POST");
removeMovieClip(dotHold);
}
Any ideas?
LoadVar Fails In Frameset
I've created a file and have loadVar obj to pass data to php. This works fine at the very beginning. But when this swf was put in a frameset, php tell me it fails to get the variable from swf. Is there any possible solution to solve this?
My script is very simple:
sendLV = new LoadVars();
sendLV.school_no = _root.school_no;
sendLV.send("browsegallery.php", "POST");
in php, i have this script:
$school_no = $_POST['school_no'];
SetIInterval Fails On 2nd Call
I have a timer reflecting seconds elapsed.
It works fine the 1st time it's called. But if I want to return to that part of my movie and restart the timer, it can be reset to 0 again fine but it won't up date each second, as the setInterval instructs. It runs faster and jumps values.
I don't know by returning to the frame where I and place the 'setInterval' the function it calls, am I somehow calling to it twice which causes Flash player to get a bit confused??
On tracing my variable it does reflect the problem by tracing most values 12 times but some only 3-9 times before increasing.
www.digi-port.net/~rcmantis/flash2.swf
on 1st click of example2 it's fine. Return to example2 after another example and the setInterval goes tits up!
I should have had this finished days ago :'((
Flash CMS Loading With & Fails
Hi,
There seems to be a problem when it loads text1.html
When I try to use a & or when I use special characters like '
it stops reading (f.e. Photo's gets to be Photo&s) because it thinks the & brings a new variable via the loaded text file.
Can an expert help me out????
I asked this on several programmers but got on help so far.
Please help me out.
I tried escaping and codepage but none helped me.
As gratitude I will set my CMS for download, and your credits included.
Thanks so much !
Preloader Fails To Display
Ok, I have a PRELOADER movie (swf) that I am calling everytime I want to call a CONTENT movie to be loaded into my MAIN movie. This scenario of using a generic preloader has worked well.
However, on some of my movies, when the CONTENT movie is called to be loaded into the MAIN movie, the PRELOADER does not display until the CONTENT movie is say 80% complete.
I have tried adding empty frames at the start of the movie to help irradicate this, but I am at a loss as to why I seem to have a large amount of KB in the first frame ?
I have used components in some of the movie clips and I hear that these can cause problems ? Also these have been skinned and therefore the movie contains a 'THEME' in the library. However, when I remove these components and THEME from the library and timeline, the problem is not resolved. Is there some sort of legacy in linkage ?
Any ideas are more than welcome, as it seems that I can create a new movie, import the same content and export... everything then works..well sometimes !!!
I just want to get a handle on what is happening.
Regards,
motorpilot
|