Dynamic Flash Not Working In IE
Why does the following not work in IE but works in firefox, if I take out the php code that writes the filename and put a static filename there itworks fine just when the code is dynamic does it not show only n IE though.
PHP Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="listFavorites" width="100%" height="100%"> <param name="movie" value="/repository/<?php echo $previewFileName; ?>" /> <param name="quality" value="high" /> <embed src="/repository/<?php echo $previewFileName; ?>" quality="high" width="100%" height="100%" name="listFavorites" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>
FlashKit > Flash Help > Flash MX
Posted on: 04-01-2005, 07:31 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Flash Bug? Masked Dynamic Text Not Working
Ok, so I have a very very simple script to change the value of my textbox that is inside a MC called 'two'.
I want to mask that textbox, so I did indeed embed the font that's not the problem. When I make the textbox layer a 'masked' layer with the mask layer above it, the code stops working UNTIL I put a 'fake' variable into the 'variable' field of the text properties menu. Then it works, but I am not calling that variable. Also it works fine as is, when the layers are not masked, only when it becomes a masked layer does it stop working.
What's up with that?
ActionScript Code:
var myCount:Number = 0;two.txtLetter.text = myCount;function switchLetter() { if (myCount < 9) { myCount++; } else { myCount = 0; } two.txtLetter.text = myCount; trace(myCount);}
PHP Mailer Not Working When Using Dynamic Text Field In Flash MX
I need some help with the following.
I have three keyframes in the main timeline:
#1 keyframe holds the input text fields ("name", "address", and so on) and button "next";
#2 keyframe holds one big dynamic text field that receives the input from the input text fields and button "send";
#3 keyframe informs the user that his/her data has been successfully received.
Everything works (the dynamic field receives the data from the input text fields), but after I publish the website and click the "send" button I never get any email with the results from the forms.
The following is the code on the second keyframe. "result" is the instance name of the dynamic text field. "aResult" is the variable name (of the same dynamic textfield) that stores the received input, which I want to have sent to my email address. When I do the 'trace' action I can see the contents of the variable "aResult". But for some reason the contents do not get sent.
Code:
stop();
result.htmlText = "<b><font size='14'>Online Application Results</font size></b>
"+"
";
result.htmlText += "<b>Name: </b>"+namee+"
";
result.htmlText += "<b>Title: </b>"+titlee+"
";
result.htmlText += "<b>Adress: </b>"+streete+" "+streete2+"
";
result.htmlText += "<b>City: </b>"+citye+"
";
result.htmlText += "<b>State: </b>"+stateBoxe+"
";
result.htmlText += "<b>ZIP/ Postal Code: </b>"+zipe+"
";
result.htmlText += "<b>Country: </b>"+countryBoxe+"
";
result.htmlText += "<b>Work Phone: </b>"+workPhonee+"
";
result.htmlText += "<b>Home Phone: </b>"+homePhonee+"
";
aResult = result.htmlText;
send.onRelease = function() {
trace(aResult);
loadVariables("email.php", "POST");
};
My PHP code in "email.php" file, which is stored in the same directory as the .swf and .html file on the server:
Code:
<?php
$sendTo = "my_email@yahoo.com";
$subject = "Comments and Suggestions on My Website";
// don't pay attention to HEADERS -- I am not using them for now. Maybe that's why
//the script doesn't work?
$headers = "From: " . $_POST["name"] . "<" . $_POST["email"] .">
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-Path: " . $_POST["email"];
$message = $_POST["aResult"];
mail($sendTo, $subject, $message, $headers, );
?>
Thank you very much in advance.
P.S. I started from HERE and ended up having what I have now.
Flash Dynamic HTMLText Some HTML Tags Not Working
var myText:String = "<b>Subscript of Term is 6</b> i.e., Term<sub>6</sub>"
The above <sub> tag is not working. The flash ignored the tag.
How I can use Super and Sub script.
Can anyone help me...?
Thanks in advance.
Regards
Razzak
[Flash 9 AS 2]format Text In Dynamic Field Not Working
I am trying to change the text format in an AS-created text field and it is not working. I got the codes right out of the help files. what am I doing wrong?
var my_sound:Sound = new Sound();
my_sound.loadSound("lockhart.mp3", true);
this.createEmptyMovieClip("knob_mc", this.getNextHighestDepth());
knob_mc.left = knob_mc._x;
knob_mc.right = knob_mc.left+100;
knob_mc.top = knob_mc._y;
knob_mc.bottom = knob_mc._y;
knob_mc._x = my_sound.getVolume();
with (knob_mc) {
lineStyle(0, 0x000000);
beginFill(0xFFCCFF);
moveTo(0, 580);
lineTo(8, 580);
lineTo(8, 596);
lineTo(0, 596);
lineTo(0, 580);
endFill();
}
knob_mc.createTextField("volume_txt", knob_mc.getNextHighestDepth(), knob_mc._width+4, 580, 30, 22);
format = new TextFormat();
format.color = 0xFFCCFF;
knob_mc.volume_txt.setTextFormat(format);
knob_mc.volume_txt.text = my_sound.getVolume();
knob_mc.onPress = function() {
this.startDrag(false, this.left, this.top, this.right, this.bottom);
this.isDragging = true;
};
knob_mc.onMouseMove = function() {
if (this.isDragging) {
this.volume_txt.text = this._x;
}
}
knob_mc.onRelease = function() {
this.stopDrag();
this.isDragging = false;
my_sound.setVolume(this._x);
};
Dynamic Mask For Dynamic Text Won't Working Any Body Pls Help
Im' supposed to make a scrollable gridlike simulation with using MC. Inside that MC there are dynamic text area as cell in which its text will be updated dynamically.
Now i have a strange prob that when i use setMask to mask that grid MC it won't working
I have the MC name 'grid'
above that another MC name 'msk'
code is like tha
grid.setMask("msk");
it only shows the full grid instead of masking area.
Flash MX TabIndex Only Working With Text Fields, Movies And Buttons Not Working :(
hey, has anyone heard of this, is it a known bug, or am i doing something wrong?
im using the following code to tab index a page, with text fields, buttons and movies that i would like to highlight to the visitor.
arrTabIndex = new Array("butAddress", "movEmail", "txtCC", "txtTelephoneNumber", "txtMobileNumber", "txtSubject", "txtSubject", "txtRealName", "txtBody");
for (var Count = 0; Count < arrTabIndex.length; Count++) {
eval(arrTabIndex[Count]).tabIndex = Count;
//eval(arrTabIndex[Count]).tabEnabled = 1;
//eval(arrTabIndex[Count])._focusrect = 1;
}
my problem is, that if i include movie clips or buttons, the first in the series does focus and show the colored square but the tab key does not move the focus to the next object.
if i only include text fields, the tab key works as normal
is this a bug, or am i doing something wrong?
many thanks, in advance
clive
Working With Dynamic Text
Hey all... I've got a text field that calls in a variable (lets call it "_root.text")... Does anyone know if there's a way for some of that text to be tagged as bold, italic, underlined, different font, etc? I was hoping there'd be a special character I could put in the string ('' or '<b>' or the like) but i can't find one if there is.
Any help would be appreciated. Thanks.
EM
Dynamic Buttons Not Working
hello I'm having trouble with my menu I have been working on it for days can't get it to work here is my code and down load fla
// main movie code
MovieClip.prototype.acc = 3.9;
MovieClip.prototype.smorz = 1.22;
name = new Array("work", "resume", "play", "contact");
loadSWF = new Array("work", "resume", "play", "contact");
max = 3;
for (i=1; i<=max; i++) {
duplicateMovieClip("_root.menu0", "menu"+i, i);
myMenu = _root["menu"+i];
_root["menu"+i].myLoadSWF = loadSWF[i];
myMenu.mov.txt = name[i];
}
// button's code
on(release){
loadMovieNum(_parent.myLoadSWF+".swf", 1);
}
link to fla file (right click to down laod)
http://www.punkrockvideos.com/youngheartattack/menu.fla
I can get three buttons to work (load swf file) but the first button (work) does not load..
please help thank you.
george
Dynamic Text Is NOT WORKING
using flash mx
dynamic text
uploaded files and the dynamic text doesn't show
http://www.marchschaffel.com
check out the "principals" page... is it some kind of problem with the html code or whatever? at the end the following snippet comes up:
<P ALIGN="LEFT"></P>
what does that mean?
what's going on?
Dynamic Jpgs - Not Working
Actually, they are working for me, but not for everyone. I have a swf that loads external jpg's. Some people can see them, and others not. The users that can not see them, can see the movie, but not the jpg's. I'm guessing that they don't have Flash Player 6.
Should I put a detector to see if they have Flash Player 6, and then put an alternate movie for them? If so, how?
Or, is there something that I may be doing wrong? Could it be something other than the player?
Thanks,
gamist
Dynamic Text Not Working
Im building a flash app for pocket pc, flash player6 for pocket pc is installed and all the other dynamic text fields are working except for login page heres the code does any one Know what is going wrong with it
stop();
status = " ";
sock = new XMLSocket();
sock.connect(*****,*****);
if (sock.connect) {
trace("connected");
} else {
trace("failed");
}
function onSockConnect(success) {
if (success) {
_root.stat = "LIVE";
_root.status = "connected to server";
trace("connected2");
} else {
login.enabled = false;
_root.status = "connection error";
trace("failed2");
}
}
sock.onConnect = onSockConnect;
thanks in advance
Working With Dynamic Screens
Ok the question is where is it?
How do i access screens i am dynamically generating in .as here is the code:
for(var x = 0; x < 4; x++)
{
_level0.Listening.attachMovie("Screen", "myScreen" + x, _level0.Listening.Directions.getDepth() + x);
trace( "Number of Child Screens: " + _level0.Listening.numChildScreens);
}
_level0.Listening is the parent slide that you start with at default and add slides to. The trace statement shows the number of screens increasing according to the for statement but i cannot actually access the slide from any navigation using something as simple as:
on (release)
{ _level0.Listening.currentSlide.gotoNextSlide();
}
even though on ide generated components this nav code works. any ideas? And then how would i add a button to one of these generated slides?
Thanks a bunch,
Keith
Working With Dynamic Text
Ver 7.2
Built scrollable text box inserted text.
I am trying to change the font on 1 or 2 words. When I high light the word and change it to bold, the whole text box of words change to bold.
How can I create an interaction that transforms the selected text in Bold...
Lastly, any good book out there that teach action scripting to beginners?
Dynamic Text Box Not Working
Thanks in advance for your help.
Using Flash MX
I'm using an Input Box with action script to move a meter needle.
(Problem) The meters numeric text box isn't picking up the value
from the Input box. It should copy the users input from 0-100.
I have attached the file.
Thanks,
--Steve
Dynamic Gallery Not Working
i need a little bit of help here. the code i'm working with is half my own, and the other half is what i've pieced together from examples found in the help sections.
here is what i have:
Code:
// function for displaying the photos
function showPhotos() {
for(i=1; i<=6; i++) {
imgURL = this['pic'+i]+'.jpg';
this['photo'+i].loadMovie(imgURL);
}
}
//create new LoadVars object
var gal = new LoadVars();
gal.onLoad = showPhotos();
gal.sendAndLoad('gallery.txt', gal, 'POST');
in the end, i'll be using php/mysql for the photos, but for testing purposes, i am using the following text file:
Code:
pic1=image1&pic2=image2&pic3=image3&pic4=image4&pic5=image5&pic6=image6
when i run trace with imgURL, everything comes up as undefined.jpg but when i comment out the gal.onLoad = showPhotos(); and call showPhotos manually, everything works fine.
the only thing i can think of is that maybe the function is called before the variables that i'm loading and when i call the function manually, it just happens to have everything loaded before the function is called. flash help says that .onLoad is only called when .sendAndLoad() has been completed. so what else could this be?
Working With A Dynamic Instance
I am trying to move a movie clip across the stage. This clip has the instance name "runningGirl". I want to affect this movie clip dynamically. That way, when I add "runningBoy" into the mix, I can use the same function, but pass along the different intance name.
Right now, this is how I'm doing it.
I am calling a function in an if statement:
Code:
if(*parameters*){
ThrowIowan(runningGirl);
}
Then, the actual global function looks like this:
Code:
_global.ThrowIowan = function(iowan){
trace("Big D & the Kid's Table");
dx = 86-_root.iowan._x;
dy = _root.iowan._y-222;
_root.iowan._x += dx;
_root.iowan._y -= dy;
}
It's not working though, because I think it's not reading the instance name right (_root.iowan._x ). I don't think the variable is being passed correctly. How can I make this work?
Note: The function is being called successfully, because the trace shows up.
Preloader Of Dynamic Swf Not Working. Please Help
Hi all,
Thanks for checking my post out.
I have an external swf in a containerMC in my main movie...the external swf has a preloader...
The preloader is a movieclip with a dynamic text box in it (instance name on the text box is 'status').
The movieclip has these actions on it:
Code:
onClipEvent (enterFrame) {
loaded = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
framesLoaded = Math.ceil((loaded/total)*200);
gotoAndStop(framesLoaded);
status.text = framesLoaded+"";
if (framesLoaded>=200) {
_parent.gotoAndPlay(2);
}
}
The movieclip doesn't load the movie! It does show the preloader briefy for about a frame before just playing the rest of the movie which then stops mid-way through animation to do some more loading!!!
I'd really appreciate anyone's thoughts on my this isn't working as it should.
Thank you very much and I hope to hear from you.
Cheers,
Mark
[F8] Dynamic OnRelease Not Working...Help
Ok, so I have a simple loop creating onRelease's for some dynamically created MC's, but when you click them, the trace only sends the last looped variable... I understand the problem, but don't know how to solve it... here is the code:
Code:
function releaseHIT() {
for (i=1; i<=_global.pTOTAL ; i++) {
_root["BAR_"+i].HIT.onRelease = function() {
trace("You clicked project "+i);
}
}
}
So no matter which bar you click it always says the total...30. Any ideas? Im sure its scope or something.
Thank you all in advance!!!
_Ben
Dynamic Preloader Not Working
Hi all,
i have a dynamic preloader i'm working at that seem to give me problem, here the coding
Code:
loadPage(section,1,10);
//
function loadPage(sectionID, startID, endID) {
for (i=startID; i<=endID; i++) {
loadMovie(path+section+"/tn/"+this["myName"+(i-1)], _root["tn"+i].holder);
//loadTn(_root["tn"+i]._x,_root["tn"+i]._y,i);
//
// create preloader
attachMovie("preloaderSm","preloaderSm"+i,1000001+i);
this["preloaderSm"+i]._x = _root["tn"+i]._x+32;
this["preloaderSm"+i]._y = _root["tn"+i]._y+32;
// run preloader
this["preloaderSm"+i].createEmptyMovieClip("runLoader",2000001);
this["preloaderSm"+i].runLoader.onEnterFrame = function() {
var loadedBB = _root["tn"+i].holder.getBytesLoaded();
var totalBB = _root["tn"+i].holder.getBytesTotal();
trace("load "+loadedBB);
this._parent._parent.preloaderSm.xbar._xscale = 0;
//
if (loadedBB>30) {
preload = (loadedBB/totalBB)*100;
this._parent._parent.preloaderSm.percentDisplay.text = Math.ceil(preload)+"%";
this._parent._parent.preloaderSm.xbar._xscale = Math.ceil(preload);
if (preload>=100) {
//fade in contents
_root["tn"+i].holder._alpha = false;
var tnAlphaIn:Tween = new Tween(_root["tn"+i].holder, "_alpha", Strong.easeOut, 0, 100, 1, true);
//
// unload preloader script and mc
this.unloadMovie();
this._parent._parent.preloaderSm.unloadMovie();
}
} else {
preload = 0;
}
};
}
}
i think on this following line is not working, because when i trace the value, it only give "4"
Code:
var loadedBB = _root["tn"+i].holder.getBytesLoaded();
btw, the images is loading, the problem seem to lies on the preloader only, any insight please?
Dynamic HtmlText Isn't Working
About as simple as can be...
var t = new TextField();
addChild(t);
t.htmlText = "Hello<br> World";
This does not display the line break...p tags also don't work. However, <b> tags do...do I need to initialize something?
Dynamic RemoveMovieClip() NOT Working
OK, why does the following not work. Everything happens the way it should except that the movie clip is not being removed. I used the debugger to see that each time the button is pressed a new instance of the movie clip is placed on top but the current one is not removed.
Code:
stop();
var load_this = "";
var current_mc = "";
var initial_mc = "yes";
_root.prophase_btn.onRelease = function(){
if (initial_mc == "no"){
_root[current_mc].removeMovieClip();
}
load_this = "prophase_mc";
current_mc = "prophase_new_mc";
_root.attachMovie(load_this, current_mc, _root.getNextHighestDepth(), {_x:19.5, _y:19.5});
initial_mc = "no";
}
_root.metaphase_btn.onRelease = function(){
if (initial_mc == "no"){
_root[current_mc].removeMovieClip();
}
load_this = "metaphase_mc";
current_mc = "metaphase_new_mc";
_root.attachMovie(load_this, current_mc, _root.getNextHighestDepth(), {_x:19.5, _y:19.5});
initial_mc = "no";
}
_root.anaphase_btn.onRelease = function(){
if (initial_mc == "no"){
_root[current_mc].removeMovieClip();
}
load_this = "anaphase_mc";
current_mc = "anaphase_new_mc";
_root.attachMovie(load_this, current_mc, _root.getNextHighestDepth(), {_x:19.5, _y:19.5});
initial_mc = "no";
}
_root.telophase_btn.onRelease = function(){
if (initial_mc == "no"){
_root[current_mc].removeMovieClip();
}
load_this = "telophase_mc";
current_mc = "telophase_new_mc";
_root.attachMovie(load_this, current_mc, _root.getNextHighestDepth(), {_x:19.5, _y:19.5});
initial_mc = "no";
}
Working With CSV And Dynamic Text.
Hi all
I'm starting to work on a personal project which requires me to read cells from a CSV file, and place the value of the cells into a text box.
(at first I wanted to use XML, but CSV is much more ideal for me)
I came across this piece of code, posted by freddycodes here:
http://www.actionscript.org/forums/s...10&postcount=3
That code supposed to take a CSV file and arrange it inside an array in Flash AS, from what I understand.
My question is, how do I use that array to choose certain cells (for example, the age of john) and place their value into a text box in my flash movie?
Any help, links or tutorials will be much appreciated.
Thanks!
-soundwave-
Dynamic Sound Not Working...
Ok, so followed the Kenny bellow dynamic sound stuff and cant seem to get it to work just right. After it loads, it doesnt play, unless I press the play button. Cant figure out how to get it to play automatically as soon as its done loading. Here's the code:
ActionScript Code:
this.mySounda = new Sound(this);
this.mySoundVolume=100;
this.mySounda.setVolume(mySoundVolume);
this.onLoad = function () {
this.mySoundLoading=0;
}
this.onEnterFrame = function () {
this.mySoundBytesTotal =this.mySounda.getBytesTotal();
this.mySoundBytesLoaded=this.mySounda.getBytesLoaded();
if (this.preloadNow==1 && this.mySoundBytesLoaded>0) {
this.mySoundLoading=Math.round((this.mySoundBytesLoaded/this.mySoundBytesTotal)*100);
if (this.mySoundLoading == 100) {
this.preloadNow=0;
thetitle.text = _global.playtitle[_global.playsong];
mySounda.start();
}
if (this.mySoundLoading != 100) {
thetitle.text="Loading " + this.mySoundLoading + "%";
}
}
//trace("mySoundBytesTotal: " + this.mySoundBytesTotal + " mySoundBytesLoaded: " + this.mySoundBytesLoaded + " mySoundLoading: " + this.mySoundLoading);
}
I cant believe I cant figure this out, but I cant. So how does one get it to play automatically as soon as its done loading?
Xml, Dynamic Scroll - Will Pay For Working Fla
Hi,
I've absolutely tortured myself for over a month trying to do this. I hate to give up after getting this close, but that's exactly what I'm doing. I can tell you that I've tried dynamic masking, adding an additional movieclip, and everything else that's been posted before that's even remotely related to what I'm trying to do.
The attached movie works just like I want it to, except the list of words in the dark blue section (not the entire movie) needs to scroll using the buttons that appear above and below the list. Let me know if you'd like to fix this for me.
Thanks,
Debbie
debbieg3@bellsouth.net
Dynamic Masking Not Working
Hi all,
i use:
_root.attachMovie("mask", "msk", 3);
_root.createEmptyMovieClip("imgCont", 1);
So I create a movie clip that i want to mask
then i load an image into the created Mc
loadMovie("test.jpg",imgCont);
then i mask the imgCont MC using the msk MC
imgCont.setMask("msk");
doesn't work, any ideas ?
thanx i.a.
M
Dynamic Text Box Not Working
ok im trying ot make a timer... and every time imake a dynamic text box it wont let me put in any code... help?
Dynamic Text Box Not Working
I followed http://www.kirupa.com/developer/mx/l...mictextbox.htm and it works fine, but I only want the text to come up in certain parts of a movieclip using gotoAndPlays and it doesn't work then. thx
Preloader Of Dynamic Swf Not Working. Please Help
Hi all,
Thanks for checking my post out.
I have an external swf in a containerMC in my main movie...the external swf has a preloader...
The preloader is a movieclip with a dynamic text box in it (instance name on the text box is 'status').
The movieclip has these actions on it:
Code:
onClipEvent (enterFrame) {
loaded = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
framesLoaded = Math.ceil((loaded/total)*200);
gotoAndStop(framesLoaded);
status.text = framesLoaded+"";
// Text that will appear in loading bar
if (framesLoaded>=200) {
_parent.gotoAndPlay(2);
}
}
The movieclip doesn't load the movie! It does show the preloader briefy for about a frame before just playing the rest of the movie which then stops mid-way through animation to do some more loading!!!
I'd really appreciate anyone's thoughts on my this isn't working as it should.
Thank you very much and I hope to hear from you.
Cheers,
Mark
Dynamic Menu Not Working
I know this is a simple fix but I'm missing something. I've attached the .fla.
When I rollover "Menu" and then want to use the "Submenu" it blinks. And it doesn't work.
Dynamic Text Not Working
This is my code in in the actions layer
as you can see it should update every second and it does because when I do a trace it shows in the output box that the counter increases. The problem is that I also have a dynamic text field with the var = cliptime and the instance = cliptime. When the code loads I do get it to output "0:00" but as the movie increments the text box doesn't change at all.
Code:
setInterval(displayTime, 600);
import mx.video.*
function displayTime():Void{
n = Math.round(my_movie.playheadTime);
mins = Math.floor(n/60);
secs = n - 60*mins;
secs<10 ? secs = "0"+secs : secs;
cliptime.text = mins+":"+secs
trace(mins+":"+secs)
}
Dynamic Preloader Not Working
Hi all,
i have a dynamic preloader i'm working at that seem to give me problem, here the coding
Code:
loadPage(section,1,10);
//
function loadPage(sectionID, startID, endID) {
for (i=startID; i<=endID; i++) {
loadMovie(path+section+"/tn/"+this["myName"+(i-1)], _root["tn"+i].holder);
//loadTn(_root["tn"+i]._x,_root["tn"+i]._y,i);
//
// create preloader
attachMovie("preloaderSm","preloaderSm"+i,1000001+i);
this["preloaderSm"+i]._x = _root["tn"+i]._x+32;
this["preloaderSm"+i]._y = _root["tn"+i]._y+32;
// run preloader
this["preloaderSm"+i].createEmptyMovieClip("runLoader",2000001);
this["preloaderSm"+i].runLoader.onEnterFrame = function() {
var loadedBB = _root["tn"+i].holder.getBytesLoaded();
var totalBB = _root["tn"+i].holder.getBytesTotal();
trace("load "+loadedBB);
this._parent._parent.preloaderSm.xbar._xscale = 0;
//
if (loadedBB>30) {
preload = (loadedBB/totalBB)*100;
this._parent._parent.preloaderSm.percentDisplay.text = Math.ceil(preload)+"%";
this._parent._parent.preloaderSm.xbar._xscale = Math.ceil(preload);
if (preload>=100) {
//fade in contents
_root["tn"+i].holder._alpha = false;
var tnAlphaIn:Tween = new Tween(_root["tn"+i].holder, "_alpha", Strong.easeOut, 0, 100, 1, true);
//
// unload preloader script and mc
this.unloadMovie();
this._parent._parent.preloaderSm.unloadMovie();
}
} else {
preload = 0;
}
};
}
}
i think on this following line is not working, because when i trace the value, it only give "4"
Code:
var loadedBB = _root["tn"+i].holder.getBytesLoaded();
btw, the images is loading, the problem seem to lies on the preloader only, any insight please?
Working With Dynamic Clips
i created dynamic clips and attaced a movieclip from the library to them:
Code:
for (i=0; i<6; i++) {
this.createEmptyMovieClip("targetClip"+i, this.getNextHighestDepth());
_root["targetClip"+i]._x = i*20;
_root["targetClip"+i].attachMovie("btnM"+i, squere, this.getNextHighestDepth());
}
i turned them into buttons but it doesnt recognize the dynamic clips;
Code:
for (var m:Number = 0; m<11; m++) {
this["targetClip"+m] = addBehaviour(m);
}
function addBehaviour(m) {
this["targetClip"+m].onRelease = function() {
pressed(this._name);
};
}
function pressed(storedName) {
storedName = storedName.slice(10, 12);
_root["targetClip"+storedName]._y = 400;
}
i tried this instead of _root but it doesnt know what _root["targetClip"+storedName] is?
Dynamic&Input Txt Not Working
hello, all
I'm trying to build a flash email in a seperate swf from the main movie and when the email.swf is played independently, it works just fine, but once I load it from the main movie, my dynamic and input text don't even show up. Anyone know why?
Al
Dynamic Preloader Not Working
Hi all,
i have a dynamic preloader i'm working at that seem to give me problem, here the coding
Code:
loadPage(section,1,10);
//
function loadPage(sectionID, startID, endID) {
for (i=startID; i<=endID; i++) {
loadMovie(path+section+"/tn/"+this["myName"+(i-1)], _root["tn"+i].holder);
//loadTn(_root["tn"+i]._x,_root["tn"+i]._y,i);
//
// create preloader
attachMovie("preloaderSm","preloaderSm"+i,1000001+i);
this["preloaderSm"+i]._x = _root["tn"+i]._x+32;
this["preloaderSm"+i]._y = _root["tn"+i]._y+32;
// run preloader
this["preloaderSm"+i].createEmptyMovieClip("runLoader",2000001);
this["preloaderSm"+i].runLoader.onEnterFrame = function() {
var loadedBB = _root["tn"+i].holder.getBytesLoaded();
var totalBB = _root["tn"+i].holder.getBytesTotal();
trace("load "+loadedBB);
this._parent._parent.preloaderSm.xbar._xscale = 0;
//
if (loadedBB>30) {
preload = (loadedBB/totalBB)*100;
this._parent._parent.preloaderSm.percentDisplay.text = Math.ceil(preload)+"%";
this._parent._parent.preloaderSm.xbar._xscale = Math.ceil(preload);
if (preload>=100) {
//fade in contents
_root["tn"+i].holder._alpha = false;
var tnAlphaIn:Tween = new Tween(_root["tn"+i].holder, "_alpha", Strong.easeOut, 0, 100, 1, true);
//
// unload preloader script and mc
this.unloadMovie();
this._parent._parent.preloaderSm.unloadMovie();
}
} else {
preload = 0;
}
};
}
}
i think on this following line is not working, because when i trace the value, it only give "4"
Code:
var loadedBB = _root["tn"+i].holder.getBytesLoaded();
btw, the images is loading, the problem seem to lies on the preloader only, any insight please?
Dynamic Jpgs Not Working In Scrollpane
ok- i have an MC that contains both a dynamically loaded textfield and an empty MC into which i am loading a jpeg. now, it works fine until i link it to a scrollpane, then just the text shows up in the scrollpane and not the jpg. any help???
thx
Working With Dynamic Text Fields
Hi,
i am working on a text animation sequence.
i have created a movieclip that contains a dynamic textfield. what i want to know is if i can dynamically change the size, font, and position of the text field using action script.?
if i cant in manipulating the same properties of the movie clip will it affect the textfield? (i want it to)
Ahref In Dynamic Text Box Now Working
hi all - Flash MX
I searched, and found nothing specific to my question
I have a dynamic text box, and different text I want to use the a href command to create links. I start the link with <A HREF="www.site.com">click on this text</A HREF>. The link works fine, but all text following the link is gone. If I change the </A HREF> to </A>, the following text appears, but then the link is all text that follows the initial <A HREF>. My dynamic text box is multiline, renderable as html, and selectable. The text box is really basic.
Here is the text file that I have, where all text after the link is missing:
text=
<html>
This is a test to make sure this works<BR>
<b>This is some bold text</b><br>
<i>this is some italic text</i><br>
<u>This is some underline text</u><br>
This <A HREF="http://www.google.com"><u>link here</A HREF></u>should work as a link to google. But all this text should do nothing
</html>
Any ideas? Thanks
Moojamboo
Dynamic Test Not Working In Mask
hi, I have some a dynamic text field inside a mask and i've linked it to a .txt file. for some reason it's not showing up, anyone know why? It works when I dont put it inside a mask
Dynamic Frame Targeting Not Working
I searched for other posts on this, and some were relative, but I wasnt able to find a solution.... here's what ive got (this is flash 5 - i am in the dark ages I know - but the AS should be relatively the same)
I've got a MC with an onClipEvent that watches for the pgUP and pgDWN keys to be pressed. This part works, as it traces that it saw the keystrokes. But what doesnt work is my targeting the named frame to jump back to. (variable that is set on _root) Here's the code:
onClipEvent (enterFrame) {
if (Key.isDown(Key.PGDN)) {
trace ("go to next area");
_root.play(); //WORKS FINE
}
if (Key.isDown(Key.PGUP)) {
trace ("go to prev area"); //WORKS
_root.gotoAndStop ( _root.prevSection ); //DOESNT WORK
//prevSection is defined at different points on main timeline
//and would indicate the previous section's named frame
}
}
Here's the deal.. I only want to make one of these 'sniffers' for the pgUP, pgDWN keys and use it for a number of scenes. I dont want to be custom coding each one, (more than 40-50 scenes with 10-20 sections each) and I know this script should work. If I enter a number or a name in " ", the script works, but only for that one named frame.
What can I do to dynamically target named frames instead of numbers? I have tried eval, .toString, etc and nothing works. At best, I get thrown back to frame 1.
Thanks for your help, as always.
LoadMovie Swf With Dynamic Text Into MC Not Working
Here's the layout:
The main screen has 2 buttons that are supposed to target a single empty movieclip (instance name "content") and load a specified swf.
actions for the main screen:
PHP Code:
loadMovie("welcome.swf","_root.content");
actions for the Events button:
PHP Code:
on (release) {
loadMovie("events.swf","_root.content");
}
actions for the Welcome button:
PHP Code:
on (release) {
loadMovie("welcome.swf","_root.content");
}
both welcome.swf and events.swf are just a dynamic text box w/ scrolling functionality. For some reason, no matter what button you press it keeps the movieclip w/ the same welcome.swf, though it does blink, as though it's loading. When welcome.swf was a static textbox and welcome.swf was a dynamic textbox, the switch worked fine. Now it doesn't want to. I've also tried telling it to unloadMovie("_root.content"); and it clears it. Anyone know WHY it's not loading!?
Dynamic Text Field Not Working Right ... =S
Hi,
I've posted about this before, but I thought it was WAY too complicated, but it's just a simple thing, though I'm not getting it! The problem is that I am using a flash component from www.flashcomponents.com which is called HEADLAB-NEWSFLASH V1.1.2. It's nothing more than an external txt being updated and showing some text on a swf, changing with time. But the real problem is WHERE do I change the "charset" so that I can input portuguese text for example, so that in characters like "á", "à" "ã" "ç" dont appear a square! many thanks in advance!
David
Dynamic Movie Not Working Properly
Hi,
I am only just starting to use dynamic movie clips, and am having a prob....
when i dynamically place a movie onto the root timeline, it appears, but doesnt move about as it is supposed to.
The clip in question has tweens within it, but when it is placed, it just appears, stays static, then dissappears; instead of fading in, moving along the screen, and fading out!
[AS CODE USED:]
if(_global.whichmov="low"){
_root.attachMovie("em_low","attachedmovl",1);
}else{
_root.attachMovie("em_high","attachedmovh",1);
}
[CODE END]
any help much appreciated.
MW
Dynamic Movie Not Working Properly
Hi,
I am only just starting to use dynamic movie clips, and am having a prob....
when i dynamically place a movie onto the root timeline, it appears, but doesnt move about as it is supposed to.
The clip in question has tweens within it, but when it is placed, it just appears, stays static, then dissappears; instead of fading in, moving along the screen, and fading out!
[AS CODE USED:]
if(_global.whichmov="low"){
_root.attachMovie("em_low","attachedmovl",1);
}else{
_root.attachMovie("em_high","attachedmovh",1);
}
[CODE END]
any help much appreciated.
MW
Dynamic Text Not Working With A Mask
I'm having an issue with dynamic text. I have a file which I load into my flash movie to populate a dynamic textfield. Everything worked fine.
But, as soon as I put a mask on that textfield, the text disappears. If I move it away from the mask, it works fine. But behind the mask, no go.
Am I doing something wrong, or is there a way around this?
Thanks much!
Dan
Simple CSS Dynamic Text Should Be Working?
Ok I swear I had this working at one point, but can someone take a look at the file and tell me why it isn't working...this is very basic.
I cant' attch the css so here that is and it is named "resume.txt"
/* CSS Document */
.title{
font-weight:bold;
font-size: 24px;
}
.header{
font-weight:bold;
font-size: 13px;
}
.content{
font-size: 12px;
color: #666666;
margin: 5px 0 0 20px;
}
Custom Scrollbar W/Dynamic Txt Not Working.
Hello guys, and thanks for taking the time.
Well since I have found many tutorials about scrolling textboxes
but none of them provide all the features I need:
1.Dynamic text (sharp text not smooth anti-aliased)
2.Continuos Scroll buttons (not one scroll per click)
3.With scroll bar (not only scrollbuttons)
4.Ability to customize buttons and scrollbar with my own graphics
(I've tried the FlashMX Scrollbar component and I can't use an image
for the scrollbar without having it streched)
So... I've partially mixed 2 usefull tutorials from Flashkit and Actionscript.org
and I came with my own scrolling textbox BUT...the scrollbar
doesn't work properly:
a. Scrollbar does not move when clicking on the buttons.
b. Textbox does not increment or decrement the scroll according to the
proportional position of the scrollbar.
Can someone help....please ??
Here's the link to my scrollbox attempt, and on that page you can download
the FLA file if you wanna give it a shot:
http://www.zona-g.com/scroll_experiment.htm
Thanks !!
-Waltman
MC W/ Dynamic Text Using TextFormat AS Not Working
Hello,
I was hoping someone could lend a thought on this problem:
I have 3 MCs which have dynamic text property. The 2 instances are completed properly. The site includes a shared library which has one font in it:Georgia. The web page which includes the MCs has the font linked. The font has been set up in the shared library, i.e., "Linkage Property". All 3 options in this property are selected and the url is "sharedlib.swf. (just in case anyone is wondering about the font setup).
The problem is this. I am using the following code to establish submenu activity. When the page is published and opened into the "master" web page, the MCs do not work. The initial text is present, however there is no activity on rollover, rollout, etc.
I have spent several hours reviewing syntax and help sites with no luck.
I would really appreciate anyone's thoughts. Peace.
//Create TextFormat object that defines the states of the sub-menu options
var optionDisable:TextFormat = new textFormat("Georgia", 15, null, true, true);
var optionEnable:TextFormat = new textFormat("Georgia", 13, null, false, false);
// Disable the sub-menu option that corresponds to the currently loaded section
this.AboutUs_MC.myText.setTextFormat(optionDisable );
this.AboutUs_MC.enabled = false;
// -----------<About_Us option>----------------- \
this.AboutUs_MC.onRollOver = function() {
this.myText.setTextFormat(optionDisable);
}
this.AboutUs_MC.onRollOut = function() {
this.myText.setTextFormat(optionEnable);
}
// -----------</About_Us option>----------------- \
// -----------<RMP Staff option>----------------- \
this.RMPStaffMC.onRollOver = function() {
this.myText.setTextFormat(optionDisable);
}
this.RMPStaffMC.onRollOut = function() {
this.myText.setTextFormat(optionEnable);
}
this.RMPStaffMC.onRelease = function() {
this.myText.setTextFormat(optionDisable);
this.enabled = false;
}
// -----------</RMP Staff option>----------------- \
// -----------<Projects option>----------------- \
this.ProjectsMC.onRollOver = function() {
this.myText.setTextFormat(optionDisable);
}
this.ProjectsMC.onRollOut = function() {
this.myText.setTextFormat(optionEnable);
}
this.ProjectsMC.onRelease = function() {
this.myText.setTextFormat(optionDisable);
this.enabled = false;
// -----------</Projects option>----------------- \
Dynamic Text Scroller Not Working At All
Hi all,
I'm sure that you're all tired of these scroller questions but always run into problems when I use files or codes from the net. I don't know if somethings wrong with my flash program or not.
I'm building a lyrics retrieval page for my friend but the darn scroll buttons won't work as they have before.
Any help is appreciated.
Here's the file:
|