Aw You Cant Figure It Out(IE 100% Refresh Breaks Flash)
ok here it is...
i have my flash movie set to 100% width using the flashobject in the HTML.
if you take a look at it in IE it works fine... untill you press the refresh button in the browser. then everything gets all jacked up.
but wait... if you right click on the movie(when its all jacked up) and set the quality to "low" or "medium" it goes back to normal... WTF?
check it out... this is the way i need it to be(width: 100%) http://www.pokerdirect.com/Dad-Son/index.htm
this is it with the movies correct width(width: 960px) http://www.pokerdirect.com/Dad-Son/index2.htm
has anyone seen this problem before? any ideas
stupid IE
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 05-23-2007, 09:11 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
On Refresh Page, Flash Doesn't Refresh Loaded Vars?
Hi my flash app loads random vars from a php script and shows the vars, but on refresh page the flash still contains the same vars as before? How do I reload the php script again and get new random vars into my flash app?
Mads
Adding Line Breaks And Paragraph Breaks In Dynamic Text - Best Method
I'm using dynamic text and wondering what is the best way (heck, any way) to mark line breaks or paragraph breaks. I'm curious about what Flash MX AS 1.0 is capable of/ supports. I have read a little about HTML enabbling and then using HTML tags, which is probably a good solution. Just wondering if there is something else, or if that is supported by AS 1.0 at all.
I have read a few threads on special characters (SC), including Moock's site, but line breaking doesn't seem to be part of SC.
And, I've read this, but it looks like it is for Action Script 2.0:
http://www.actionscript.org/forums/s...ght=line+break
Does anyone know off hand if AS1 supports CSS, or was that new in AS2.
-Thanks,
AB.
I hope everyone is not on holiday.
[F8] AS Breaks In Flash 8
Hey all,
I have some AS that functions correctly if I export in Flash 6, but exporting in Flash 7 or 8 causes it to stop functioning. I've narrowed the problem down to this code:
Code:
onClipEvent (enterFrame) {
Y=(getProperty("_root.Norman",_y)-(_root.top))*(_root.factor);
newY = oldY - (Y+oldY)/(_root.ease);
setProperty("_root.WindowIN.Nadine",_y,newY);
oldY = newY;
}
I've been trying to debug it, and have discovered that in Flash 6 the variable newY receive the value correctly, but in Flash 7 and 8 it's stuck on NaN. Does anyone see anything that may be causing this? Any help appreciated. Thanks!
Launching A .pdf Breaks My Flash
Hey smart people -
The specs:
I have a .swf that is loaded into it's shell externally via loadMovie().
In this .swf, there is a button that launches a .pdf using
getURL("mypdf.pdf", "_self");
This button also makes a javaScript function call for click-tracing purposes.
Currently, the getURL call is on(press) and the javaScript call is on(release), since Flash can't do both of these actions at the same time.
The issue:
After the user downloads/launches the .pdf and returns to Flash, there is a button to close the externally loaded .swf that also makes the javaScript call for click-tracing.
However, when the user clicks the close button, the Flash clears from the screen and the javaScript function call is put into the location bar causing a javaScript error.
This only occurs on PC when the .pdf is launched outside of the browser window. If it is loaded into the same window, the user is forced to use the browsers BACK button and it reloads the entire Flash movie, which is working just fine. There is no issue on Mac, for some odd reason...
Any help would be greatly appreciated...I've tried a lot of things to fix this, but nothing seems to work.
Thanks!!
Too Much Inheritance Breaks Flash?
I split up my classes into 4 and when I used attachMovie, sometimes the call to the parent class constructor using super() was ignored! Anyone experienced this before?
To fix things I simply (and I mean SIMPLY) placed all code back into 2 classes and it worked again. Weird.
Flash Breaks When Not In Frame 1
I have a scrolling movieClip. Inside that MC I have several "cards". I need them to stop scrolling when clicked, scale up and sit center stage. I have all that working. However, when I placed a preloader and moved everything out of frame one, it still scrolls but the scaling up and all that jazz is broke.
When in frame one, everything works the way it should. I thought that putting my preloader in Scene 1 and making a new scene and placing everything in scene 2's first frame would work, but that didn't. Below is my code, everything sits inside one "actions" frame that only works when it resides in frame 1. Anyone have any ideas?
stop();
_lockroot = true;
import mx.transitions.Tween;
import mx.transitions.easing.*;
scroll_mc._alpha = 100;
scroll_mc.onEnterFrame = function() {
_global.cardX = scroll_mc._x;
_global.cardY = scroll_mc._y;
trace(cardX);
};
scroll_mc.koop1_btn.onRelease = function() {
koopman_mc._visible = true;
koopman_mc.gotoAndStop(2);
scroll_mc.koop1_mc._visible = false;
new Tween(koopman_mc, "_xscale", Regular.easeOut, 75, 100, 1, true);
new Tween(koopman_mc, "_yscale", Regular.easeOut, 75, 100, 1, true);
new Tween(koopman_mc, "_x", Regular.easeOut, _global.cardX+381.5, 200.3, 1, true);
new Tween(koopman_mc, "_y", Regular.easeOut, 226.4, 125, 1, true);
new Tween(scroll_mc.jean1_mc, "_alpha", Regular.easeOut, 100, 60, 1, true);
scroll_mc.koop1_btn.enabled = false;
};
koopman_mc.koop1Close_btn.onRelease = function() {
new Tween(koopman_mc, "_xscale", Regular.easeOut, 100, 75, 1, true);
new Tween(koopman_mc, "_yscale", Regular.easeOut, 100, 75, 1, true);
new Tween(koopman_mc, "_x", Regular.easeOut, 200.3, _global.cardX+381.5, 1, true);
new Tween(koopman_mc, "_y", Regular.easeOut, 125, 226.4, 1, true);
new Tween(scroll_mc.jean1_mc, "_alpha", Regular.easeOut, 50, 100, 1, true);
scroll_mc.koop1_btn.enabled = true;
};
koopman_mc.onEnterFrame = function() {
if (koopman_mc._xscale == 75) {
koopman_mc._visible = false;
scroll_mc.koop1_mc._visible = true;
}
};
New IE7 Install Breaks Flash HELP
I have IE7 installed on several XP and Vista machines at home, and everything was generally fine.
This weekend I updated one WinXP SP2 machine to IE7 using new standalone installer.
This broke flash in IE7. I tried EVERYTHING. Complete Uninstall of Flash, Reset of IE settings, Manual and Automatic install of Flash.
There are no errors during Install (either through getFlash page, or standalone installer), AND Flash works fine in Firefox and Opera on the same PC in the same account.
Furthermore, I tried Microsoft's own Silverlight, and that works FINE also.
But flash still broken. I get big F letter (and a progress bar) on adobe's Flash install page, then it continues onto flash page. a box where flash should be comes up Empty, stays up for a bit, then collapses into tiny box, no errors though. I tried other Flash sites, all say 'You need to install Flash'. I even tried 'Skip detection' sites, but flash still fails after skipping.
Please help!
This is my kids PC, and when they can't play their WebKinz, our household is in BIG trouble! ;-)
Flash Player Breaks
What is the standard flash player 9 version? 9.0.28.0 and up?
My application gives me a null reference error when I run it in a 9.0.28.0 player but it works in 9.0.45.0
I think it is because I use the root identifier in my as3 code.
Anyone run into this?
TBW ~ OS Zelda ~ Flash 8 Breaks It
I've been learning about the various ways to create TBWs in flash and I found a neat example of a zelda game. I attempted to make some modifications to see if I understood the code and just renaming a few variables slows the swf down substantially and it doesn't work correctly. Then I tried to just copy the little example piece by piece to a new Flash 8 document and it doesn't work there either! I must be missing something so if you could look at what I've attempted to modify thus far and tell me where I went wrong that would be a great help as I just can't figure it out! The example is only a few functions so it should be quick to fix for those more experienced with flash than I.
Here's a link to a rar which contains the modified version & the original in both .fla and .swf: tinyurl.com/r2f2z
After taking a look if you have time to explain how the depth functions work that would be great as I don't really understand how they work although I get the concept.
// swapDepth: link is in front or behind graphic elements (trees for example)
this.backgroundMC.link.swapDepths(this.backgroundMC.link._y*224+this.backgroundMC.link._x);
I never saw the pose var declared either yet the script uses it just fine in the original example so I don't really get that one either. I think I'm just missing a part of the original file in my recreation but I don't know where it would be.
Thanks in advance for any help! I'm using the Game Design Demystified book as a guide as well as a flash 2.0 reference book but it has been a slow process as most of the content seems a bit dated.
Flash Css <p> Acting Like Line Breaks
Hi, for some reason when I use
Code:
this.NewsContent.htmlText = "<p>one paragraph</p><p>another paragraph</p>";
the rendered code looks like this:
Code:
one paragraph
another paragraph
when I want it to look like
Code:
one paragraph
another paragraph
I have a whole article and i really hope I can sort this without having to do some sort of bizare find and replace...
M@)
Flash That Breaks Out Of Its Html Boundary
hi, i'm trying to create something like
http://www.photo-genics.com
http://www.star-dust.tv
like, the flash stretches all the way to edges of the browser window, but the main content stays centred, and at the right scale... i've tried searching but all i get is how to make youtube fullscreen, don't know what search terms to be using!
[F8] Flash BREAKS In IE When REFRESHED... Weak
http://www.pokerdirect.com/dad-son/index.htm
take a look in IE... looks fine untill you press the reload or refresh button and all my stuff breaks! weak! now try this. right click on the movie and set the quality to medium or low... it goes back to normal.
i am passing vars from the HTML with the "flashobject" script but some of the functions that are breaking are compleatly contained in the flash movie.
i have searched all over and havent seen any answeres
let me know if you have had the same problem and what you did to fix it.
New Flash Player Breaks Transparency
I think the newest Flash player breaks Flash transparency in Firefox. I have a machine with XP and an older Flash player and this site appears fine in Firefox: http://www.terrystoffee.com . But on my Vista box with the newest Flash player, no transparency - you can see white backgrounds. Can anyone offer help, confirmation or advice?
Thanks,
Tony
[cs3] Flash *breaks* JavaScipt Popup
This is a different issue than the "js menu behind flash object" but I don't even know how to search for it. All searches thus far have just lead me to the how to place flash behind JS (which again, isn't my issue).
Well here is my problem, in I.E. 7 at least, it works fine in FF3... and I don't have the ability yet to test in other versions of either browser.
http://www.gracebrethren.org/new
I am working on a new site for a church, popups work great except in I.E. 7 (at least) when you move down the list of menu items, once it hovers over the flash object, it breaks (closes).
I have tested these things:
1) Commenting out/removing the flash object allows the popups to work
2) Removing everything IN the flash object (text/etc) and have a blank flash object still breaks the popup
3) it has nothing to do with the js/css code with padding/etc... I've tried different things and they always break when switching from link to link over the flash object.
There may be something I am missing in my js/css code, I am still fairly new to more advanced js scripting. Any help would be most appreciated,
Thank you,
TJ
Flash 10 Breaks Older Versions
Swfs versions 5-9 play, loading swfs with loadMovieNum. Now broken with Flash 10. For example see:
http://wholeo.net/Access/path/axPlugins.htm
Do I have to reauthor all these movies?
Here's the script:
Attach Code
playerVersion = eval("$version");
myLength = length(playerVersion);
while (i<=myLength) {
i = i+1;
temp = substring(playerVersion, i, 1);
if (temp eq " ") {
platform = substring(playerVersion, 1, i-1);
majorVersion = substring(playerVersion, i+1, 1);
}
}
if (majorVersion>=5) {
loadMovieNum("flash5ok.swf", 0);
}
Flash Banner That Breaks From It's Dimensions
Hi I was wondering if anyone could help. I have recently seen a flash banner on a website where an animated car comes out of the flash file and moves across the web page before going back into the banner.
Does anyone know how this was done as I am interested in learning about how to create it.
Thanks for any help you can give!
Jon
Flash Is Counting Line Breaks?
I'm having a hard time validating my guestbook!
I recently succeeded with removing spaces as characters after some ugly code .
But my dynamic multiple textfields are counting linebreaks as characters !
Any hints?
Flash / XML Problem 'Line Breaks'
Hi Guys,
I have a small problem related to displaying text from my XML file into FLASH. I cant seem to get the paragraph of text to breal onto seperate lines and what happens is that the text goes across in one continuos line.
If i add <br> intop the XML file, when up loaded it casues a major problem with the FLASH.
Heres the site.
Go to MY WORK > WEBSITES
You will see that the first problem is that Software/Technology description dosent stay within the content of the grey border.
It should read:
Quote:
Macromedia Dreamweaver MX, Firweorks MX, Flash MX, HTML, Filemaker Database
Any ideas?
I can provide all or any files needed.
Cheers
Best Wishes
Richard
How To Send Line Breaks To Php From Flash?
Hi,
If i have a multiline input text field in flash, for a user to input their address, how do i get flash to send the lump of text as a variable with any line breaks included.
For example, if the user inputs
John Smith
The White House
End of the Lane
...the varaible gets to php as:
John SmithThe White HouseEnd of the Lane
...which is not what i want.
How do i get flash to include the line breaks? I'm assuming there must be some way of doing this?
Any help much appreciated
Flash Css <p> Acting Like Line Breaks
Hi, for some reason when I use
Code:
this.NewsContent.htmlText = "<p>one paragraph</p><p>another paragraph</p>";
the rendered code looks like this:
Code:
one paragraph
another paragraph
when I want it to look like
Code:
one paragraph
another paragraph
I have a whole article and i really hope I can sort this without having to do some sort of bizare find and replace...
M@)
How Do You Add Line Breaks To Mailto Links In Flash?
Here's what I'm currently using:
getURL ("mailto:?subject=Watch the " + [_root.videoName] + " Wipeout Video!" + "&body=Hi, Click here to watch this great wipeout video, " + [_root.videoName] + ": " + [_root.videoUrl]);
This is how I want the body to be formatted:
Hi,
Click here to watch this great wipeout vide, XXXX:
http://www.url.com
For some reason when I used the %0D code to try and add linebreaks to the body, it's not working. I seems like flash is passing parameters differently than HTML so it cannot be formatted. How can I add the linebreaks?
[F8] Flash To PHP Email Line Breaks Deleted
Hi all -
I have a designed a Flash based interface to send email via PHP.
I capture the variables in Flash using:
var my_lv:LoadVars=new LoadVars();
my_lv.name=name_txt.text;
my_lv.message=message_txt.text;
// ...
// ...
my_lv.send("mail.php","POST");
My PHP reads:
<?php
$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["from"] . ">
";
$headers .= "Reply-To: " . $_POST["from"] . "
";
$headers .= "Return-Path: " . $_POST["from"];
$to = $_POST['to'];
$message=stripslashes($_POST['message']);
//NOTE: I tried $message without stripslashes - same results
$subject=stripslashes($_POST['subject']);
mail($to, $subject, $message, $headers);
?>
Everything is working fine, but when the message is received all line breaks entered in Flash message are deleted making the message one long line. Is there something I need to write into my actionscript/php to allow the message to display properly (including manual line breaks)? I'm guessing (hoping!) it's an easy fix.
Thanks in advance -
sleepydad
TextField Line Breaks And Flash 8vs9
Below is what I have for a simple text field on stage.
The break `<BR>` works in Flash Player 8, but not in F.P.9.
Am I missing something...?
ActionScript Code:
var authForm = new TextFormat();
authForm.font = "AuthFont";
authForm.size = 12;
authForm.color = 0xFFFFFF;
authTxt.html = true;
authTxt.embedFonts = true;
authTxt.multiline = true;
//authTxt.wordWrap = true;
authTxt.autoSize = "right";
var theText = (strAuth + "<BR>" + strTitle);
authTxt.htmlText = theText;
authTxt.setTextFormat(authForm);
Dual Screen Workspace Breaks Flash
Ok, I'm using flash pro cs3 under win xp and I have a dual screen setup. If I move some panels over to my second screen, flash starts crashing and hanging, e.g.,
debug movie causes the flash pro cs3 to hang.
simply quiting the the application will cause it to hang.
If I use the default workspace (single screen), all these crashes stop. Why?
Flash Player 10 Breaks Hindi Text
I have a website I've used since Flash 7 and it has worked just fine on both Mac and PC. It plays some Hindi Language videos with some dynamically loaded Hindi text underneath it -- kinda like subtitles.
I just updated to 10,0,12,36 and now the Hindi text is broken. I haven't recompiled or anything. Just updated the player. My understanding was that there was supposed to be better complex language support in this version.
How do I open a ticket?
Edited: 11/03/2008 at 04:44:21 PM by Rothrock
Line Breaks Deleted When Flash Variables Sent To PHP
Hi all -
I have a designed a Flash based interface to send email via PHP.
I capture the variables in Flash using:
var my_lv:LoadVars=new LoadVars();
my_lv.name=name_txt.text;
my_lv.message=message_txt.text;
// ...
// ...
my_lv.send("mail.php","POST");
My PHP reads:
<?php
$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["from"] . ">
";
$headers .= "Reply-To: " . $_POST["from"] . "
";
$headers .= "Return-Path: " . $_POST["from"];
$to = $_POST['to'];
$message=stripslashes($_POST['message']);
//NOTE: I tried $message without stripslashes - same results
$subject=stripslashes($_POST['subject']);
mail($to, $subject, $message, $headers);
?>
When the message is received all line breaks using RETURN/ENTER in Flash message .swf are deleted making the message one long line when viewed by the recipient. Is there something I need to write into my actionscript/php to allow the message to recognize these hard line breaks and display properly in the recipient's email client? I'm guessing (hoping!) it's an easy fix. BTW, the messages do display properly in 'some' clients and not others. I need some fix that will correct this across the board.
Thanks in advance -
Line Breaks When Sending Form In Flash
Hello All!
Please please please can someone help me with this - I'm going crazy not being able to work out how to do it!!
I have a form on a flash website; several single line inputs and one multiline input textbox. I send it via a php page, but when I get the email through the message part (from the multiline input textbox) displays as one line, rather than having line breaks, eg below:
Message sent in flash:
"Hello,
I'm sending a message using your flash form.
Thanks,
Chris"
Message displayed in email:
"Hello,I'm sending a message using your flash form.Thanks,Chris"
How comes it will not add line breaks, no matter what I do?!!
Thank you so much in advance!!
Chris
PHP/XML/Flash Combo (extra Line-breaks)
Hey all,
I'm having some problems when calling in data from a MySql database.
I use PHP to generate an XML file, wich then gets called into flash.
any help would be highly appreciated.
What happens is that an extra line-break (or newlin or br or whatever) is added in Flash.
I have put my example here :
http://www.indewulf.be/test/keuken.swf
My xml file is here (doesn't work in IE, works in mozilla) :
http://www.indewulf.be/php/keuken.php
All my text fields have HTML enabled in flash,
this is my main chunk of code :
Code:
var add_next_here = 30;
function GenerateMenu(menu_xml){
var menus = menu_xml.firstChild.childNodes;
var prijs = menus[0].firstChild;
prijs_txt.html = true;
prijs_txt.autoSize = true;
prijs_txt.htmlText = prijs;
for (var i = 1; i < menus.length; i++){
this_menu = menus[i].childNodes;
for (var i = 1; i < this_menu.length; i++){
gerecht = this_menu[i];
gerecht_oms = gerecht.childNodes[0].firstChild.nodeValue;
gerecht_wijn = gerecht.childNodes[1].firstChild.nodeValue;
if(gerecht_wijn == undefined){gerecht_wijn = '()';}
this_gerecht_mc = main_mc.attachMovie("gerecht_mc","gerecht" add i,i);
// set up shortcuts
gerecht_txt = this_gerecht_mc.gerecht_txt;
wijn_txt = this_gerecht_mc.wijn_txt;
//
gerecht_txt.autoSize = true;
// set text
gerecht_txt.html = true;
gerecht_txt.htmlText = gerecht_oms;
wijn_txt.text = gerecht_wijn;
wijn_txt._y = gerecht_txt._height;
this_gerecht_mc._y = add_next_here;
add_next_here += this_gerecht_mc._height + 10;
}
}
bottom = main_mc._y+mask_mc._height-main_mc._height-50;
}
///////////////////////////////////////////////////////////////////////
// Read in XML, run some functions
//////////////////////////////////////////////////////////////////////
var k_xml = new XML ();
k_xml.ignoreWhite = true;
System.useCodepage = false;
k_xml.onLoad = function(success){
if (success){
GenerateMenu(this)
}
else{
trace ("Error loading XML file");
}
};
k_xml.load("http://www.indewulf.be/php/keuken.php");
Flash Site Breaks, Seemingly For No Reason
I build this site: http://www.refindfurniture.com
The portfolio section has a dynamically loaded image gallery which loads images into a blank movie clip and centers them. It works fine, but if you click on the buttons enough times, eventually they start showing up in weird places (really far left or right) and if you reload it enough times, sometimes it loads all the images in a quick succession in the top left of the screen.
Does anyone know why a flash movie would hvae buggy behaviour like this? I've seen stuff like this before, where it acts strangely if you click on buttons very quickly.
Flash UIComponents In Library -> Custom Component Breaks
Having built a number of Flash MX 2004 components, I have never come across this problem before and it has me stumped.
I have a DialogBox component which display a window on screen with a title and some text.
The title and text can be set as follows:
code:
box.setTitle("Title");
box.setText("This is the main text");
By default the title is a larger font than the main text.
Everything seems to work fine, until you add another UIComponent to the library. When you have done this, the text formatting fails to work and both the text and the title are left the same size.
The attached files are both similar except one has a Button in the library and the other does not. That Button simply being in the library, not even on the stage, causes my DialogBox component to misbehave.
I have no idea why this happens, so is it a flash bug or am I missing something obvious.
<strong> Tags Forcing Line-breaks In Flash
So I have created a textField that has a CSS style applied to it using embedded fonts. I have in-line <a href= > links that display fine - and even <strong> works - but, it creates a line-break after it.
I thought maybe the closing tag had a line-break character ('
') after it, so i tried replacing it if it existed:
ActionScript Code:
text.split('</strong>
').join('</strong>');
but no success.
I have a feeling this might be an actual Flash flaw. Does anyone know?
GetUrl With Javascript Breaks When Publishing For Flash Player 8
Hi,
I want to use getUrl to display a javascript alert. I've found an example that works perfectly, by using getUrl("javascript:alert('hello world')");
But that example is published for Flash Player 6, and the rest of my movie requires FP8. And if I go to publish settings, and select Flash Player 8 as target, the javascript is no longer executed.
It's not about the getUrl changes in Flash Player 9, I've also tested with Flash Player 8.
If you want to try for yourself, the example I'm talking about is from http://www.actionscripts.org/forums/...d.php3?t=47483
The attachment of the 3rd post.
External Objects Breaks Flash Window Object
I import a movie clip from an external library to be the content path of a window. This works, but now the other windows i have on stage, their contents(local) or even the bar with the exit button don't appear. Once I delete the imported movie clip from stage, the other windows work fine again. Ive also tried creating a reference object on the stage instead of dragging the imported object over.
Using AS 2 flash 7
Thanks for your help, very frustrating
Oh but If I make a test movie after a test movie it works... but the imported moviclip window doesnt appear...(though possibly because the variables dont get wiped)
Edit: added WindowBug.zip to show the problem
*Delete the blue square to make it work, leave it to watch it break
*Please Someone Try it, tell me if it breaks on yours !!
Flash Strips Out Line Breaks When Sending Variable To Javascript
I'm trying to pass a string from a textarea component OR a normal input text box from within flash to a javascript variable on the page, and back again. I can pass back and forth no worries, but flash seems to remove all line breaks.
Check out my sample htm / fla / swf for an example.
How do I do this - both ways, preserviing as much of the formattin as possible? (Would prefer not to have to use rich text / html)
Flash Adds Extra Line Breaks In My Database Records
I have a Flash movie that pulls records from a MySQL table through PHP, and lists them in succession in a dynamic text field. Some entries are showing extra breaks between lines. Very annoying.
Any ideas?
Director Flash 8 Xtra Breaks Shared Object And OnSync
This one has driven me insane for days, but at least now I know what the problem is. It's really a Director-Flash8 xtra-FMS problem, but I figure the best chance for a solution is posting it here.
The problem is this: The Director Flash 8 xtra update messes up remote shared object connections to FMS applications. The Management Console debugger does not show any SO properties ("no data"), and only the "clear" onSync event fires. The old Flash 7 xtra worked/works fine. To illustrate, I've tested the following code in the Director message window with both the v8 and v7 xtra (if you know Actionscript and not Lingo, it's still easy to figure out what happens here). It basically creates and connects a remote shared object on FMS:
rrr = newObject("SharedObject")
nnn = newObject("NetConnection")
sss = "rtmp:/apptest01" -- app on locally running FMS
er = nnn.connect(sss)
put er
-- 1
fff = rrr.getRemote("tester", nnn.uri, true)
put fff
-- <flash object>
er = fff.connect(nnn)
put er
--1
-- so it's all good until here. onSync callback works with "clear", etc, but...
fff.data.foo = 55.5
put fff.data.foo
-- 55.5... but only shows in Mgmt Console when using the v7 xtra...
-- when using the old flash7 xtra,
-- debugging the FMS app and onSync events works correctly,
-- but when using flash8 xtra,
-- debugging the FMS app shows "no data" for this shared object. foo = 55.5 should be there.
-- also, onSync events no longer fire after the initial "clear".
If I translated this into actionscript and ran it in Flash 8 vs Flash 7, etc, would I get the same problem? I'll try that next, but it took me a while to get this far. Is it simply a matter of permission or firewall setting? Or is it something just broken with the Director flash 8 xtra?
Thanks
Flash Putting Too Many Line-breaks In Dynamically-loaded Text...
Here's how it goes:
- User types into multiline textbox in HTML form
- Text gets inserted into MySQL db
- Text is retrieved via PHP and passed to Flash
- Flash displays it in a textbox
The thing is, there are always too many line-breaks. For example, where the user has typed one line-break, Flash inserts 2 or 3. So basically, there are huge spaces between lines/paragraphs.
When I print the text to HTML file via PHP, it looks fine.
Is there a step I'm missing?
External Text Files In Flash: Getting The Line Breaks To Display Properly (HELP)
Jackass linebreaks!
nightmare. does anyone know of a way to get Flash to read the line breaks in Windows text files as single line breaks, and not double line breaks? I know about Flash thinking that "
" is a double line break, so I need to figure out a way to get around that using the code I have:
Code:
var XMLfile = "article_setup.xml";
importXML = new XML();
importXML.varTarget = this;
importXML.ignoreWhite = true;
importXML.onLoad = function (success)
{
if (success)
{
var vt = this.varTarget;
var root = this.firstChild;
vt.articleObj = new Object();
allArticles = root.childNodes;
for(var i=0; i<allArticles.length; i++)
{
article = allArticles[i].childNodes;
vt.articleObj["article" + i] = new Object();
vt.articleObj["article" + i].articleName = article[0].firstChild;
vt.articleObj["article" + i].articlePath = article[1].firstChild;
}
var i;
for (i=0; i<allArticles.length; i++)
{
listBox.addItem(vt.articleObj["article" + i].articleName);
}
select.onPress = function()
{
var myVariable = new LoadVars();
myVariable.onLoad = function(success)
{
if (success)
{
addText(this.article);
}
else trace("Error loading content.");
}
myVariable.load(vt.articleObj["article" + listBox.getSelectedIndex()].articlePath);
}
}
else
{
trace("ERROR PARSING XML");
}
};
function addText(textContent)
{
pbox.htmlText = textContent;
}
importXML.load(XMLfile);
stop();
Still Can't Figure This Out - Flash 8
I apologize in advance for posting a similar post, but this one is much more descriptive...and im desparate!
I am loading swfs to level0...and one loads from the other and vice versa...they both call the same custom class that I wrote "XMLShape.as" in the .as file I have an array of movieclips which are booths...these booths highlight when their respective exhibitor is clicked in the list...now the problem is that the movieclip array gets all screwed up when I load the second swf from the first...here is code that I am using to test this problem, and I have figured out that it is losing the reference but how?
code:
function highLight(booth:Number)
{
trace("List Index: " + booth);
trace("MainWin Booth: " + booths[booth]);
trace("MiniWin Booth: " + miniBooths[booth]);
trace("wtf is going on?");
var trans1:Transform = new Transform(booths[booth]);
var trans2:Transform = new Transform(miniBooths[booth]);
tempColor = trans1.colorTransform;
var myColor:ColorTransform = new ColorTransform(1, 1, 1, 1, 250, 200, 0, 75);
trans1.colorTransform = trans2.colorTransform = myColor;
}
--trace from first swf loaded
List Index: 1
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer.2
MiniWin Booth: _level0.CAD_mc_mini.zoomControl.mapContainer.2
wtf is going on?
List Index: 2
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer.3
MiniWin Booth: _level0.CAD_mc_mini.zoomControl.mapContainer.3
wtf is going on?
List Index: 3
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer.4
MiniWin Booth: _level0.CAD_mc_mini.zoomControl.mapContainer.4
wtf is going on?
-trace from second swf loaded...
List Index: 1
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer
MiniWin Booth:
wtf is going on?
List Index: 2
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer
MiniWin Booth:
wtf is going on?
List Index: 3
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer
MiniWin Booth:
wtf is going on?
as you can see...the reference to the actual booth mc number is missing and its referencing the whole map...I cannot understand why...
one issue that I have noticed is that the first time the app is run...the booths array looks like this...
_level0.CAD_mc.zoomControl.mapContainer.1
_level0.CAD_mc.zoomControl.mapContainer.2
_level0.CAD_mc.zoomControl.mapContainer.3
.
.
.
.
_level0.CAD_mc.zoomControl.mapContainer.326
_level0.CAD_mc.zoomControl.mapContainer.327
_level0.CAD_mc.zoomControl.mapContainer.328
when you load the second swf...the array is supposed to be cleared...but it ends up looking like this...
_level0.CAD_mc.zoomControl.mapContainer
.
.
.
_level0.CAD_mc.zoomControl.mapContainer..328 times
then
_level0.CAD_mc.zoomControl.mapContainer.1
_level0.CAD_mc.zoomControl.mapContainer.2
_level0.CAD_mc.zoomControl.mapContainer.3
.
.
.
.
_level0.CAD_mc.zoomControl.mapContainer.326
_level0.CAD_mc.zoomControl.mapContainer.327
_level0.CAD_mc.zoomControl.mapContainer.328
so it seems like the array is just getting bigger...and these _level0.CAD_mc.zoomControl.mapContainer values are being added 328 times each time I load another swf from the previous one...can anyone help? I know this is f-ed up but I cannot get my head around it....
Still Can't Figure This Out - Flash 8
I apologize in advance for posting a similar post, but this one is much more descriptive...and im desparate!
I am loading swfs to level0...and one loads from the other and vice versa...they both call the same custom class that I wrote "XMLShape.as" in the .as file I have an array of movieclips which are booths...these booths highlight when their respective exhibitor is clicked in the list...now the problem is that the movieclip array gets all screwed up when I load the second swf from the first...here is code that I am using to test this problem, and I have figured out that it is losing the reference but how?
ActionScript Code:
function highLight(booth:Number)
{
trace("List Index: " + booth);
trace("MainWin Booth: " + booths[booth]);
trace("MiniWin Booth: " + miniBooths[booth]);
trace("wtf is going on?");
var trans1:Transform = new Transform(booths[booth]);
var trans2:Transform = new Transform(miniBooths[booth]);
tempColor = trans1.colorTransform;
var myColor:ColorTransform = new ColorTransform(1, 1, 1, 1, 250, 200, 0, 75);
trans1.colorTransform = trans2.colorTransform = myColor;
}
--trace from first swf loaded
List Index: 1
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer.2
MiniWin Booth: _level0.CAD_mc_mini.zoomControl.mapContainer.2
wtf is going on?
List Index: 2
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer.3
MiniWin Booth: _level0.CAD_mc_mini.zoomControl.mapContainer.3
wtf is going on?
List Index: 3
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer.4
MiniWin Booth: _level0.CAD_mc_mini.zoomControl.mapContainer.4
wtf is going on?
-trace from second swf loaded...
List Index: 1
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer
MiniWin Booth:
wtf is going on?
List Index: 2
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer
MiniWin Booth:
wtf is going on?
List Index: 3
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer
MiniWin Booth:
wtf is going on?
as you can see...the reference to the actual booth mc number is missing and its referencing the whole map...I cannot understand why...
one issue that I have noticed is that the first time the app is run...the booths array looks like this...
_level0.CAD_mc.zoomControl.mapContainer.1
_level0.CAD_mc.zoomControl.mapContainer.2
_level0.CAD_mc.zoomControl.mapContainer.3
.
.
.
.
_level0.CAD_mc.zoomControl.mapContainer.326
_level0.CAD_mc.zoomControl.mapContainer.327
_level0.CAD_mc.zoomControl.mapContainer.328
when you load the second swf...the array is supposed to be cleared...but it ends up looking like this...
_level0.CAD_mc.zoomControl.mapContainer
.
.
.
_level0.CAD_mc.zoomControl.mapContainer..328 times
then
_level0.CAD_mc.zoomControl.mapContainer.1
_level0.CAD_mc.zoomControl.mapContainer.2
_level0.CAD_mc.zoomControl.mapContainer.3
.
.
.
.
_level0.CAD_mc.zoomControl.mapContainer.326
_level0.CAD_mc.zoomControl.mapContainer.327
_level0.CAD_mc.zoomControl.mapContainer.328
so it seems like the array is just getting bigger...and these _level0.CAD_mc.zoomControl.mapContainer values are being added 328 times each time I load another swf from the previous one...can anyone help? I know this is f-ed up but I cannot get my head around it....
Still Can't Figure This Out - Flash 8
I apologize in advance for posting a similar post, but this one is much more descriptive...and im desparate!
I am loading swfs to level0...and one loads from the other and vice versa...they both call the same custom class that I wrote "XMLShape.as" in the .as file I have an array of movieclips which are booths...these booths highlight when their respective exhibitor is clicked in the list...now the problem is that the movieclip array gets all screwed up when I load the second swf from the first...here is code that I am using to test this problem, and I have figured out that it is losing the reference but how?
Code:
function highLight(booth:Number)
{
trace("List Index: " + booth);
trace("MainWin Booth: " + booths[booth]);
trace("MiniWin Booth: " + miniBooths[booth]);
trace("wtf is going on?");
var trans1:Transform = new Transform(booths[booth]);
var trans2:Transform = new Transform(miniBooths[booth]);
tempColor = trans1.colorTransform;
var myColor:ColorTransform = new ColorTransform(1, 1, 1, 1, 250, 200, 0, 75);
trans1.colorTransform = trans2.colorTransform = myColor;
}
--trace from first swf loaded
List Index: 1
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer.2
MiniWin Booth: _level0.CAD_mc_mini.zoomControl.mapContainer.2
wtf is going on?
List Index: 2
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer.3
MiniWin Booth: _level0.CAD_mc_mini.zoomControl.mapContainer.3
wtf is going on?
List Index: 3
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer.4
MiniWin Booth: _level0.CAD_mc_mini.zoomControl.mapContainer.4
wtf is going on?
-trace from second swf loaded...
List Index: 1
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer
MiniWin Booth:
wtf is going on?
List Index: 2
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer
MiniWin Booth:
wtf is going on?
List Index: 3
MainWin Booth: _level0.CAD_mc.zoomControl.mapContainer
MiniWin Booth:
wtf is going on?
as you can see...the reference to the actual booth mc number is missing and its referencing the whole map...I cannot understand why...
one issue that I have noticed is that the first time the app is run...the booths array looks like this...
_level0.CAD_mc.zoomControl.mapContainer.1
_level0.CAD_mc.zoomControl.mapContainer.2
_level0.CAD_mc.zoomControl.mapContainer.3
.
.
.
.
_level0.CAD_mc.zoomControl.mapContainer.326
_level0.CAD_mc.zoomControl.mapContainer.327
_level0.CAD_mc.zoomControl.mapContainer.328
when you load the second swf...the array is supposed to be cleared...but it ends up looking like this...
_level0.CAD_mc.zoomControl.mapContainer
.
.
.
_level0.CAD_mc.zoomControl.mapContainer..328 times
then
_level0.CAD_mc.zoomControl.mapContainer.1
_level0.CAD_mc.zoomControl.mapContainer.2
_level0.CAD_mc.zoomControl.mapContainer.3
.
.
.
.
_level0.CAD_mc.zoomControl.mapContainer.326
_level0.CAD_mc.zoomControl.mapContainer.327
_level0.CAD_mc.zoomControl.mapContainer.328
so it seems like the array is just getting bigger...and these _level0.CAD_mc.zoomControl.mapContainer values are being added 328 times each time I load another swf from the previous one...can anyone help? I know this is f-ed up but I cannot get my head around it....
Flash Refresh
hi i just wanna ask is there a script that i can stop a person from refreshing the flash movie, i mean like when a flash is playing the person cannot refresh while the movies is playing, another word i like to stop the viewer from refreshing the flash, they can refresh from their explore but the flash movie will not refresh and keep going
Refresh Flash Help
hi,
i am creating a flash to be converted as a desktop wallpaper which contains
random images which rotates by dates.
my problem now, is when the user dont restart the computer or dont refresh their desktop, they wouldn't get the latest images.
i need to know how can i refresh my flash file by executing the refresh command every 1155pm
hope you could help me on this.
thanks so much!
XML Refresh In Flash?
Hi there, how are you all?
I have a critical doub that I would appreciate to be solved if any of you knows how to do it.
I have a newsticker that automatically scrolls messages on the screen. In the beginning it have i.e. five messages to display. If the xml file don't receive new messages the actual messages will keep on scrolling as a loop.
My problem is when I receive new messages. How can I add this new messages to the list without affect the display of the actual messages? Is there any property in flash that permits the refresh of the xml object?
In attachment is my code, for a better comprehension.
Thanks in advance, I hope that someone coan help me!!!
Refresh XML In Flash
I am developing a standalone flash application using xml. Its kind of a slide show. There are 100 slides and all the content is coming from XML. The problem is when ever i want to make a change i.e in XML- lets say 99th slide, i have to close the swf and run it again to check the changes in the 99th slide. Is there any option to load the xml everytime when i click next button.
Thanks & regards
AVAILJKJ
Refresh Xml & Flash
hi
my flash loads an xml file, i want the flash file to force download the xml every time, how would i do this?
this is the code i'm using to load the xml
Code:
_root.list == undefined ? list = "lister2.xml" : list=_root.list;
// list loading
data_xml = new XML();
data_xml.ignoreWhite = true;
data_xml.onLoad = loadData;
data_xml.load(list);
searching the forums i thought i could do something like this but it didnt work
Code:
data_xml.load("list?cachecontrol=" + (Math.random() * 100000));
Flash On Refresh Only
My flash no longer works correctly and I can't image why. It is the simple program below.
When I first go to a page, the text headline does not appear. When I refresh or go to another page and return, the flash headline appears. Is this refreshing a clue?
Code:
<div id="flashcontent">
<script type="text/javascript">
var fo = new FlashObject("../flash/content-title.swf?title=HOSPITALITY PROPERTY&back_image=../images/content-title-image.jpg&", "content-title", "820", "106", "8", "#000000");
fo.addParam("wmode", "transparent");
fo.write("flashcontent");
</script>
</div>
Thank you in Advance, Charles
Can't Figure This Out (can't Even Figure Out How To Describe It Lol)
I have a function that is getting the dimensions of a textfield so I know how large I will need to create it later on. Problem is, when loading big blocks of HTML w/ embedded images, the textfield may change size a few times before completely loading. If I trace out the "h" property in this function inside a loop, it looks like this:
1107
1107
1153
1208
.
.
.
until it gets to around 1350. I need a way to return that 1350, not the 1107, as my textfields are being sized to small. Any idea how to modify this function below so it returns the correct values? I've tried do/while, just a while loop, and onEnterFrame, but just can't figure out a way to get those values. Any help would be appreciated.
ActionScript Code:
private function getHtmlTextExtent(mcTest:MovieClip, strHtml:String):Object
{
var w:Number = 0;
var h:Number = 0;
var fw:Number = 0;
var fh:Number = 0;
var objExtent:Object;
_txtTemp = mcTest.createTextField("txtTemp", 100, 10, 1, 530, 400);
_txtTemp.embedFonts = true;
_txtTemp.multiline = true;
_txtTemp.wordWrap = true;
_txtTemp.antiAliasType = "advanced";
_txtTemp.selectable = false;
_txtTemp.html = true;
_txtTemp.htmlText = strHtml;
w = _txtTemp.textWidth;
h = _txtTemp.textHeight;
fw = _txtTemp._width;
fh = _txtTemp._height;
objExtent = {width:w, height:h, textFieldWidth:fw, textFieldHeight:fh};
_txtTemp.removeTextField();
return objExtent;
}
|