Unable To Remove AS CuePonts
Hi There,Strange issue: I am unable to remove ActionScript cue points ... however it is showing the name of the object-to-be-removed. Any help would be highly appreciated.-Siraj [khan_siraj@yahoo.com]Attach Codepackage com.coreobjects.common {import flash.display.*;import flash.events.*;import fl.video.*;import fl.video.MetadataEvent;import fl.video.FLVPlayback;import com.gigya.AS3.WFReports;public class CuePoints extends Sprite {private var product_id:String;private var partner_id:String;private var flvSrc:FLVPlayback;private var requiredQs:Array = new Array(1,2,25,50,75,100);public function CuePoints(flv:FLVPlayback,prod_id:String,part_id:String):void {this.product_id = prod_id;this.partner_id = part_id;this.flvSrc = flv;Debug.chk("Current Video's totalTime: "+flv.totalTime);try{for (var i:Number = 0; i < requiredQs.length; i++){Debug.chk("Adding Qs: at '"+getPercent(flv.totalTime,requiredQs[i])+"' as EVT_PLAY_"+requiredQs[i]);flv.addASCuePoint(getPercent(flv.totalTime,requiredQs[i]), "EVT_PLAY_"+requiredQs[i]);//flv.removeASCuePoint("EVT_PLAY_"+requiredQs[i]);}}catch(e:Error){Debug.chk("Err Adding Qs--"+e);}finally{//flv.addEventListener(VideoEvent.COMPLETE, del_qs);}}private function getPercent(vidTotalTime:Number,percent:Number):Number{return ((percent / 100) * vidTotalTime);}private function cp_listener(eventObject:MetadataEvent):void{Debug.chk(eventObject.info.name+" partner_id_"+partner_id+" product_id_"+product_id);try{flvSrc.addEventListener(MetadataEvent.CUE_POINT, cp_listener);WFReports.ReportEvent({evt: eventObject.info.name, pid:partner_id,cid:('listing_'+product_id)});}catch(e:Error){Debug.chk("Error at Wildfire Analytics : "+e);}}private function del_qs(e:Event){Debug.chk("Video Completed...");for (var x:Number = 0; x > requiredQs.length; x++){var tmpQ:String = "EVT_PLAY_"+requiredQs[x];Debug.chk("removing"+tmpQ);try{flvSrc.removeASCuePoint(tmpQ);}catch(e:Error){Debug.chk("Err removing Qs--"+e);}}}}}
Adobe > ActionScript 3
Posted on: 02/04/2008 09:39:54 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
[CS3] Unable To Remove Buttons/ Movieclip
Hello... I am an ActionScript newbie. I followed a tutorial from computer arts magazine, to create a portfolio using actionscript and xml. I linked the portfolio to several scenes in flash, such as contents and contact details. My problem is that when I placed a button "back" on the main stage of the portfolio, to redirect to the contents page, the list of artworks thats populated from xml remains on the next scene, or any other scene i link it to. I tried using unload movie clip, but nothing is working. Please Help. This is my actionscript:
I don't if this helps, but I get this message in the output panel: Target not found: Target="_root.btn_projectsundefined" Base="_level0"
Attach Code
// Create arrays ready for the xml data
namesArray = new Array();
linksArray = new Array();
descriptionsArray = new Array();
filesArray = new Array();
// Load XML doc
objXML = new XML();
objXML.onLoad = loadXML;
objXML.ignoreWhite = true;
// The name of your XML file
objXML.load("ss_flash_folio.xml");
/////////////////////////////////////////////////////////////////////////////////////////
// onLoad XML function
function loadXML(success) {
if (success) {
// If the XML loads successfully, count how many projects there are in the file.
_root.projectCount = this.firstChild.childNodes.length; // PROJECT node in XML file
// Then run a function that builds arrays out of the XML data.
SS_Arrays();
} else {
// If the xml data did not load, show message on stage by populating the description field.
_root.description = "Error: Could not load XML";
}
}
/////////////////////////////////////////////////////////////////////////////////////////
function SS_Arrays() {
for (var count = 0; count < _root.projectCount; count++) {
var nodeObj = objXML.firstChild.childNodes[count];
namesArray[count] = nodeObj.attributes.name;
descriptionsArray[count] = nodeObj.attributes.description;
linksArray[count] = nodeObj.attributes.link;
filesArray[count] = nodeObj.attributes.file;
}
// run the function to create the thumbnail and list view buttons
SS_createButtons();
}
/////////////////////////////////////////////////////////////////////////////////////////
function SS_createButtons() {
// First of all we want to hide the master button on the stage (btn_projects_main)
// because we'll be making duplicates of it in the next part of the function
_root.btn_projects_main._visible = 0;
// Work out the X and Y positions of the main button so our new buttons start in the same place
// (Which means where ever you position the main button is where the navigation will start).
btn_xPos = _root.btn_projects_main._x;
btn_yPos = _root.btn_projects_main._y;
// Set the distances between your buttons and the number of rows
btn_xDistance = 140;
btn_yDistance = 13;
btn_numOfRows = 4;
// This figure is used to work out when to start a new column of buttons
// Loop through the projects array and create a button for each one by duplicating the original.
for (count = 0; count < _root.projectCount; count++) {
duplicateMovieClip(_root.btn_projects_main, "btn_projects" + count, count);
// As the button is created, set it's X, Y & text properties
_root["btn_projects" + count]._x = btn_xPos;
_root["btn_projects" + count]._y = btn_yPos;
_root["btn_projects" + count].text = namesArray[count];
// set the X position for the next button
if(btn_yPos == btn_yMax){
// if the last buttons was the last row in the column (based on it's Y position) then start a new column
// by resetting the Y position and adding 140px (btn_xDistance) to the the X position.
btn_xPos = btn_xPos + btn_xDistance;
btn_yPos = _root.btn_projects_main._y;
} else {
// if it's not the last one in a row, simply move it along the Y axis.
btn_yPos = btn_yPos + btn_yDistance;
}
}
// Load the first project (number 0) to avoid an empty screen
SS_load_project(0);
// Make the first project button highlighted
tellTarget(_root.btn_projects0){
gotoAndPlay(3);
}
// Set the current button variable so we know which button to switch off when another one is pressed
_root.curButton = "0";
}
/////////////////////////////////////////////////////////////////////////////////////////
function SS_load_project(arrayNumber){
Unable To Remove Movie Clip
Hello... I am an ActionScript newbie. I followed a tutorial from computer arts magazine, to create a portfolio using actionscript and xml. I linked the portfolio to several scenes in flash, such as contents and contact details. My problem is that when I placed a button "back" on the main stage of the portfolio, to redirect to the contents page, the list of artworks thats populated from xml remains on the next scene, or any other scene i link it to. I tried using unload movie clip, but nothing is working. Please Help. This is my actionscript:
I don't if this helps, but I get this message in the output panel: Target not found: Target="_root.btn_projectsundefined" Base="_level0"
Attach Code
// Create arrays ready for the xml data
namesArray = new Array();
linksArray = new Array();
descriptionsArray = new Array();
filesArray = new Array();
// Load XML doc
objXML = new XML();
objXML.onLoad = loadXML;
objXML.ignoreWhite = true;
// The name of your XML file
objXML.load("ss_flash_folio.xml");
/////////////////////////////////////////////////////////////////////////////////////////
// onLoad XML function
function loadXML(success) {
if (success) {
// If the XML loads successfully, count how many projects there are in the file.
_root.projectCount = this.firstChild.childNodes.length; // PROJECT node in XML file
// Then run a function that builds arrays out of the XML data.
SS_Arrays();
} else {
// If the xml data did not load, show message on stage by populating the description field.
_root.description = "Error: Could not load XML";
}
}
/////////////////////////////////////////////////////////////////////////////////////////
function SS_Arrays() {
for (var count = 0; count < _root.projectCount; count++) {
var nodeObj = objXML.firstChild.childNodes[count];
namesArray[count] = nodeObj.attributes.name;
descriptionsArray[count] = nodeObj.attributes.description;
linksArray[count] = nodeObj.attributes.link;
filesArray[count] = nodeObj.attributes.file;
}
// run the function to create the thumbnail and list view buttons
SS_createButtons();
}
/////////////////////////////////////////////////////////////////////////////////////////
function SS_createButtons() {
// First of all we want to hide the master button on the stage (btn_projects_main)
// because we'll be making duplicates of it in the next part of the function
_root.btn_projects_main._visible = 0;
// Work out the X and Y positions of the main button so our new buttons start in the same place
// (Which means where ever you position the main button is where the navigation will start).
btn_xPos = _root.btn_projects_main._x;
btn_yPos = _root.btn_projects_main._y;
// Set the distances between your buttons and the number of rows
btn_xDistance = 140;
btn_yDistance = 13;
btn_numOfRows = 4;
// This figure is used to work out when to start a new column of buttons
// Loop through the projects array and create a button for each one by duplicating the original.
for (count = 0; count < _root.projectCount; count++) {
duplicateMovieClip(_root.btn_projects_main, "btn_projects" + count, count);
// As the button is created, set it's X, Y & text properties
_root["btn_projects" + count]._x = btn_xPos;
_root["btn_projects" + count]._y = btn_yPos;
_root["btn_projects" + count].text = namesArray[count];
// set the X position for the next button
if(btn_yPos == btn_yMax){
// if the last buttons was the last row in the column (based on it's Y position) then start a new column
// by resetting the Y position and adding 140px (btn_xDistance) to the the X position.
btn_xPos = btn_xPos + btn_xDistance;
btn_yPos = _root.btn_projects_main._y;
} else {
// if it's not the last one in a row, simply move it along the Y axis.
btn_yPos = btn_yPos + btn_yDistance;
}
}
// Load the first project (number 0) to avoid an empty screen
SS_load_project(0);
// Make the first project button highlighted
tellTarget(_root.btn_projects0){
gotoAndPlay(3);
}
// Set the current button variable so we know which button to switch off when another one is pressed
_root.curButton = "0";
}
/////////////////////////////////////////////////////////////////////////////////////////
function SS_load_project(arrayNumber){
Edited: 04/19/2008 at 12:26:33 PM by May_86
Unable To Remove DataSet Item
I've never experienced this before, but tracing the method, shows it's returning false.
I can addItems no problem although....
any idears?
JavaScript Remove. Remove Flash Applet When Done Playing?
Is there anyway to remove a section of HTML with a javascript? Ive seen ones that replace text segments, and remove certain tags like <br>. I want it to remove the flash applet once its done playing.
I know that its possible, I just need someone that knows javascript better than me. Someone please help it would be MUCH appriciated! Thanks!
Remove Movie Clip Help, Remove Child {AS2}
So, I'm new here, and do to the lack of good help on Kongregate, I have come here =D Hopefully somebody here will be able to help me
if(_root.row2.block1._x == _root.row1.block1._x)
{
_root.row2.block1.removeMovieClip();
trace("working");
}
now, the trace fires, and, if I remove ".block1" the entire movie clip is removed, but with it in there, to remove the MC from within my MC, it WONT be removed, am I doing this wrong or am I making some other error?
Unable To Run SWF
Recently I am getting this problem.
When I try to run a swf from desktop or say from explorer it asks for a file SP.EXE. I tried browsing thru it and locating it from the players folder in the macromdeia program folder. But I coudnt find it.
But when i try to open the swf from IE it again asks for the file and when i cancel it the swf starts to play.
Also my freind gets a similar problem and in his m/c he gets the error asking for BAGLA.EXE.
WHat could be the reason. till then everything was working perfectly.
Unable To Target A MC
Hello all,
I seem to be having a problem targeting a movie clip just one layer deep from the root from a button that is in a seperate clip .. 3 layers deep. I've tested it to make sure that the syntax is correct and it works fine targeting the _root. I simply want to change the frames. This is the code that I'm using:
on (release) {
_root.about.gotoAndStop(10);
}
This seems like such a simple process and I don't understand why I'm having such a problem. If it's any help, I'd gladly upload the fla if someone wants to take a peak at the file itself.
Thanks MUCH in advance!
Brandon House
Unable To Figure It Out.
don't know if anyone is able to help but i can't seem to view comments to see if its been listed before. I am trying to use this Nav and for some reason i can personalize somethings but I can't seem to get the Links working the keep wanting to go to a file on my computer system. Now i have looked at the Actions, and seen where you put in links but same thing keeps happening i just don't know where to go as i am Completely new to this stuff, and trying to learn as i go but am completely lost. Any help you would appreciated.
Here is the link to the FLA.
http://www.flashkit.com/movies/Inter...2007/index.php
Unable To Load
i had 5 chapters of scenes to play, everything went smoothly through the first 4 chapters, but when it reach the 5th chapter, everything on the 5th chapter just went static and unable to continue on? What is the problem? ANyone knows?
Unable To Import Mp3
I've tried many things.
I've changed the Mp3 ID, I've tried many different mp3s. I've tried importing them into new documents as well as existing documents. I have even changed the bitrate. I have gone through 16 to 128 but mp3s simply will not import. I have tried dragging mp3s onto the stage. It just will not work.
WAVs will import, but sometimes they play at double the speed.
One or two mp3s will import on a rare occasion.
I used to be able to import mp3s before.
I have not recently changed any hardware.
The message is : "One or more files were not imported because there were problems reading them"
Edited: 03/14/2007 at 03:41:26 AM by Eugene Marshall
Unable To Break Apart
I have a character that I designed in illustrator and have all the different parts on different layers ( its just a face so I have the eyebrows, eyes, eye lids, mouth, nose, etc... on seperate layers) strangely enough I can break apart say the mouth but I can't break apart the eyebrow . If I do break apart it will ungroup and if I do it again it will group although there is just one line on the layer. I'm pretty confused as it's only certain "objects" it refuses to break apart. Can anyone tell me why this is happening? i'm using flash prof 8 on a pc
thanks
eleonore
ps: can't provide the file as my pc is internet unfriendly :(
Unable To Install
it says Flash player installed successfully, but I don't see it in progam files.
Unable To Download FP 9.0.124.0
I have repeatedly been signaled while browsing to download Flash Player 9 and when the download appears in progress one of two things happen: It drops me out and off of the internet; or it shows that the download has been successful with the image display, and yet when I go to the Control Panel (XP), the adobe listings do not include Flash Player 9.
My email: Ronjk2@aol.com and my phone (cell) 970-219-8102.
Thank you.
Ron Kent 9/29/08 1:45 pm. mst
Help Me: Unable To Connect To FMS
Hello Guys
I have an audio recorder . It is working fine on localhost but it is unable to connect to the remote FMS .
i have tried
nc.connect("rtmpt://myserver.com:1935/myApplication");
and
nc.connect("rtmpt://myserverip:1935/myApplication");
and
nc.connect("rtmp://myserver ip/myApplication");
But only get "NetConnection.Connect.Failed"
I tried to run the application on remote server locally there it is working fine. One remote desktop of my server the when i try to access the project through http then it is working fine but on all other computers it is unable to connect.
I will really appriciate your help
Thanks
Unable To Connect To FMS From Outside Of The US
I'm having a really strange problem. We set up our FMS a couple of weeks ago, and are able to stream videos. However, the person that is directing this project has been out of the country for a week. He has tested our site from his hotel in both Thailand and China, and then again last night from a computer in a large convention center. When he clicks on the playlist, the video screen just spins. At first I thought it was a bandwidth issue, but after reviewing the log files, I see that he has never established a connection. I have tested the connection from outside of our department (i.e., home computer, and various friends/family in different states) and we have no problems connecting.
Has anyone ever heard of this happening? It doesn't make sense to me that people in the US would be able to connect, but not from other countries.
I need to get this figured out. This is an education site, and we want to stream to people around the world. Can someone PLEASE help me???
Unable To Get The Value In TextInput
I use TextInput component to capture user's info for my contact form and invoke an asp file to send out the mail. But value entered in the TextInput somehow is not passed to ASP. Can someone help to find out what the problem is? The following is my code:
on(click){
var LastName = this._parent.txtLastName.text;
trace(LastName);
this._parent.loadVariables("email.asp", "POST");
}
Unable To Load The Flv
i cannot view the flv file on the server. however, when i download this file on my local machine, it works fine. do i have to do some sort of server configuration for mime types? if so, how?
thanks in advance. www.jetansolutions.com
Unable To Dl Components
I've been trying to download couple of files but all I get is a pop up window with the usual info followed by a blank white page. Does it matter that I'm on Mac?
Unable To Load Flv
i cannot view the flv file on the server. however, when i download this file on my local machine, it works fine. do i have to do some sort of server configuration for mime types? if so, how?
thanks in advance.
by the way, i found this link:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19439&sliceId=2
did everything on that page but still no luck. does anyone know why the flv does not show?
Please Help Unable To Export Movie
I downloaded 1.0 to try it out
liked it!
Bought it, have purchase number and registration number
Saw the updated version in downloads here. Downloads free to registered members.
The 3.41 version will not let me export my movie.
I tried updating my registration. Got another registration number. It still won't let me export! Do I have to purchase another one? That's what the pop-up keeps telling me. Why does it say the updates are free??? I thought by downloading the new version my movie would stop being linked to InsaneTools.
New Problems!! Can't use my 1.0 version. Can't reload old movie file into the NEW registered version and re-export it!
Plus, getting "caused invalid page fault in module 3DFlash Animator.exe 017f.00532lan
HELPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP!!
[Edited by ArtGallery12 on 02-06-2002 at 07:29 PM]
Please Help: Unable To Import MPEG
Hello everybody,
I have tried several times to import mpeg files, but it still won't import!
I constantly recieve te following error:
One or more files were not imported
because there were problems reading them
I got the newest Quicktime player installed...
Got more then enough memory...
Tried several mpeg-files... (they all play in Quicktime)
BTW I am a Mac user. (OS Z1-9.1)
I am looking forward hearing from you!
Greetings
Arvetheage
AV t/m Z www.avtmz.nl
The Netherlands
Unable To Edit Actionscript
Ok, I feel like a moron asking this question. I worked on a Flash movie about 5 months ago and now have to revisit it. Unfortunately, I didn't properly name layers or comment my code. Arg. I am trying locate an fopen command in my action script but no having luck.
Is there a way to do a search on all action script in all frames of a movie for a particular substring?
Unable To Open Fla Files
I am unable to open the fla files which I have downloaded from the flashkit.com website in the .zip formats. As I try to open these files in Flash5, I receive the message "Unexpected file format" and the Flash closes.
Unable To See Other Layers In Timline.
I've having a bit of a problem with FlashMX under Windows XP that's kinda confusing me. Under the timeline, all of the layers are greyed out, but when I click on a certain layer, I can see what it's called.
Unable To Add Actions To Buttons
I am not sure if I turned something on or off by accident but for the last week I am unable to add any actions to my UP, OVER, DOWN or HIT frames in my buttons... Any ideas?
Thanks
Unable To Upload My File
I'm trying to attach my file its only 188KB but the board will not take it.
Can I email it to someone?
Thanks
Deb
Unable To Embed Fonts
Quick question:
I'm using a dinamic text box and i want to embed its font on my swf, but when i do that the dinamic text box stop showing the text ...
What's going wrong ? How can i embed the font and make the dinamic text box show the text .... ?
[]s
Calvin
Unable To Save Variables
I am still trying to save some variable in my FLASH 5 training. What should happen is if the user exits out of the lessons all the variables need to placed in a txt file or ShareObject. Not sure which one. This is what I have in the first frame of the first scene:
function saveLesson() {
myLSO = SharedObject.getLocal("lessons");
}
myObj = {};
myObj.objArray = new Array();
myObj.objArray[0] = a;
myObj.objArray[1] = b;
myObj.objArray[2] = c;
myObj.objArray[3] = d;
myObj.objArray[4] = e;
myObj.objArray[5] = f;
myObj.objArray[6] = g;
myObj.objArray[7] = h;
myObj.objArray[8] = i;
myObj.objArray[9] = j;
myObj.objArray[10] = k;
myObj.objArray[11] = l;
myObj.objArray[12] = m;
myObj.objArray[13] = n;
myObj.objArray[14] = o;
myObj.objArray[15] = p;
myObj.objArray[16] = q;
myObj.objArray[17] = r;
myObj.objArray[18] = s;
myObj.objArray[19] = t;
myObj.objArray[20] = u;
myObj.objArray[21] = v;
myObj.objArray[22] = w;
myObj.objArray[23] = x;
myObj.objArray[24] = y;
myObj.objArray[25] = z;
myObj.objArray[26] = aa;
myObj.objArray[27] = bb;
myObj.objArray[28] = cc;
myObj.objArray[29] = dd;
myObj.objArray[30] = ee;
myObj.objArray[31] = ff;
myObj.objArray[32] = gg;
myObj.objArray[33] = hh;
myObj.objArray[34] = ii;
myObj.objArray[35] = jj;
myObj.objArray[36] = kk;
myObj.objArray[37] = ll;
myObj.objArray[38] = mm;
myObj.objArray[39] = nn;
myLSO.data.myObj = myObj;
}
function loadLesson() {
myLSO = SharedObject.getLocal("lessons");
a = myLSO.data.myObj.objArray[0];
b = myLSO.data.myObj.objArray[1];
c = myLSO.data.myObj.objArray[2];
d = myLSO.data.myObj.objArray[3];
e = myLSO.data.myObj.objArray[4];
f = myLSO.data.myObj.objArray[5];
g = myLSO.data.myObj.objArray[6];
h = myLSO.data.myObj.objArray[7];
i = myLSO.data.myObj.objArray[8];
j = myLSO.data.myObj.objArray[9];
k = myLSO.data.myObj.objArray[10];
l = myLSO.data.myObj.objArray[11];
m = myLSO.data.myObj.objArray[12];
n = myLSO.data.myObj.objArray[13];
o = myLSO.data.myObj.objArray[14];
p = myLSO.data.myObj.objArray[15];
q = myLSO.data.myObj.objArray[16];
r = myLSO.data.myObj.objArray[17];
s = myLSO.data.myObj.objArray[18];
t = myLSO.data.myObj.objArray[19];
u = myLSO.data.myObj.objArray[20];
v = myLSO.data.myObj.objArray[21];
w = myLSO.data.myObj.objArray[22];
x = myLSO.data.myObj.objArray[23];
y = myLSO.data.myObj.objArray[24];
z = myLSO.data.myObj.objArray[25];
aa = myLSO.data.myObj.objArray[26];
bb = myLSO.data.myObj.objArray[27];
cc = myLSO.data.myObj.objArray[28];
dd = myLSO.data.myObj.objArray[29];
ee = myLSO.data.myObj.objArray[30];
ff = myLSO.data.myObj.objArray[31];
gg = myLSO.data.myObj.objArray[32];
hh = myLSO.data.myObj.objArray[33];
ii = myLSO.data.myObj.objArray[34];
jj = myLSO.data.myObj.objArray[35];
kk = myLSO.data.myObj.objArray[36];
ll = myLSO.data.myObj.objArray[37];
mm = myLSO.data.myObj.objArray[38];
nn = myLSO.data.myObj.objArray[39];
}
}
And here is what I have in the last frame of the training:
if (_root.a <> 1 and _root.b <> 1 and _root.c <> 1 and _root.d <> 1 and _root.e <> 1 and _root.f <> 1 and _root.g <> 1 and _root.h <> 1 and _root.i <> 1 and _root.j <> 1 and _root.k <> 1 and _root.l <> 1 and _root.m <> 1 and _root.n <> 1 and _root.o <> 1 and _root.p <> 1 and _root.q <> 1 and _root.r <> 1 and _root.s <> 1 and _root.t <> 1 and _root.u <> 1 and _root.v <> 1 and _root.w <> 1 and _root.x <> 1 and _root.y <> 1 and _root.z <> 1 and _root.aa <> 1 and _root.bb <> 1 and _root.cc <> 1 and _root.dd <> 1 and _root.ee <> 1 and _root.ff <> 1 and _root.gg <> 1 and _root.hh <> 1 and _root.ii <> 1 and _root.jj <> 1 and _root.kk <> 1 and _root.ll <> 1 and _root.mm <> 1 and _root.nn <> 1) {
loadLesson();
} else {
saveLesson();
}
Why is this not working? It seems to work one minute then not the next.
Any Help would be great. Thanks.
Unable To Fill The Color
I have tried many times to fill my hat or face ,but still unsucceed. I havent lock it and have already change option to Close Large Gap.
I think there is some small gap in my picture so I cant fill it. Anyone helps?
Thanks
Unable To Read Variables
Hello everyone.
I am trying to bring some variables in from a database then use them in my movie. This is the code I am using:
function createHeader() {
trace(divPrefix);
trace(projectHeader.medium);
trace(_level0.projectHeader.type);
trace(projectHeader[ouManager]);
trace(_level0.projectHeader[preparationDate]);
trace(_root.projectHeader.divisionName);
}
projectHeader = new LoadVars();
projectHeader.load("/forms/projectdata.php");
projectHeader.onLoad = function() {
createHeader();
};
When I test this movie in debugger mode I can see the variables with their correct data on level0 under the projectHeader object. Yet no matter which way I try to call them the results say "undefined". Can anyone see what I am doing wrong?
Thanks.
Unable To Create Symbols
Hi,
Using the shape tool I am suddenly getting neon outlines to the shape I am drawing rather then the coloured vector shape I expected.
Does anyone have any idea why this would happen and how do I get the program "back to normal".
Thanks
Jadzia
Unable To Link Html
Hi Forum!!
I have a flash website embedded in a html page. On clicking each button it goes to a particular frame to show the details of each of the button. The flash website have 6 buttons. Only one button will open a html page (_self). The page will open in the same window and its a complete html page.
Now the problem is, from the html page when a menu button is clicked it opens the flash file but is starting from the first frame.
What i want to do is, from the html page if i click (say) ABOUT US, which is in the flash file, it will open the html page in the same window and will show me the about us details which is inside a movie clip in frame 2 while frame 1 contains CONTACT US details.
There is only one scene in my flash movie and i am using Flash MX.
What i have to do?? Thanks in advance. Any help is greatly appreciated.
Kallol
Unable To Change Chmod To 766...
i am using cuteftp to change the chmod of my guestbook entry file. the entry txt chmod keep staying at it default 644 no matter how i change the permission...
btw may it be the problem of the host?
Unable To Open Fla File
One of my .fla files has suddenly decided it doesn't want to open. If I double click on the file it will open Flash but not the file. If I try and open it in Flash nothing happens. I can open up other files just fine. Any suggestions?
Unable To Put Video In My Template
Hi,
I have a template that was built in such a way that is making it difficult to include video. The pages within the site are complex and have a deep structure. When I try to add a video (progressive download .flv Flash8) it never appears on the swf output. When I make a new blank FLA, and try to add the video, it of course plays fine.
Whenever a page is accessed in the template site, it whooshs in from one side and holds in the middle for one keyframe on the time line. Then if someone clicks another page within the navigation, the page swooshes away and then the next page swooshes in. I have a feeling that this design is what is making it tough.
If any experienced Flash video users could take a look at my Flash8 FLA, I would greatly appreciate it! This has been driving me nuts for weeks and has delayed my project.
Unable To Get Mp3 To Play Onload
Im trying to have the media player play on page load, but I the only way I know how to do that is if I remove the buttons on there.
I uploaded the fla. if you want to check it out and see what I'm talking about..please help.
http://www.sendspace.com/file/sc3tkj
Scrollbar Unable To Scroll
I've create a same scrollbar in flashkit tutorial and trying to put in my website but it unable to scroll. Is the action script correct?
onClipEvent (load) {
txtbox = "<P ALIGN="LEFT"><FONT FACE="Arial" SIZE="12" COLOR="#FFFFFF">First of all, ....</B></FONT></P>";
scrolling = 0;
frameCounter = 1;
speedFactor = 3;
}
onClipEvent (enterFrame) {
if (frameCounter%speedFactor == 0) {
if (scrolling == "up" && txtbox.scroll>1) {
txtbox.scroll--;
} else if (scrolling == "down" && txtbox.scroll<txtbox.maxscroll) {
txtbox.scroll++;
}
frameCounter = 0;
}
frameCounter++;
}
Unable To Deselect From Textbox
Hello everyone,
I have a problem with a textbox in flash. I have been using it previously without any problems. But it seems that from around the time I embedded fonts, I became unable to deselect from the textbox.
Once I click into the text box, the cursor remains there blinking no matter where else I click. This causes problems when trying to click through buttons as they beceom temperamental and bizzarely whether a button click is recognised seems to correspond with the blinking of the cursor in the textbox.
Any help would be greatly appreciated!
Thanks,
Nick
Unable To Deselect From Textbox
Hello everyone,
I have a problem with a textbox in flash. I have been using it previously without any problems. But it seems that from around the time I embedded fonts, I became unable to deselect from the textbox.
Once I click into the text box, the cursor remains there blinking no matter where else I click. This causes problems when trying to click through buttons as they beceom temperamental and bizzarely whether a button click is recognised seems to correspond with the blinking of the cursor in the textbox.
Any help would be greatly appreciated!
Thanks,
Nick
Unable To Display Video
I'm using Flash 8. I’ve imported a video into my .fla file. The video works fine on my desktop, but not on the server. The video will not display in Internet Explorer, Netscape and Firefox.
I uploaded the .swf, .flv and mojaveExternalAll.swf files to the server. I checked the Component Inspector to ensure I’m pointing to the .flv file. I created a .swf file for each the link in my website.
Any idea what I’m doing wrong?
As2 Unable To Load As3 Into Container.
I've got a main.swf(as2.0) which loads individual swfs into it.
However, some of the external swfs are written in as3.0 due to usage of the some text effs and preloader.
I have the following codes in my main.swf that require help to rephrase them into as3.0 so that all can be loaded proper.
as for btns:
Code:
_root.currMovie = "sense";
container.loadMovie(_root.currMovie+".swf");
button1.onPress = function () {
container.loadMovie("sense.swf");
resetAll(1);
this.myFlag = 1;
};
button2.onPress = function () {
container.loadMovie("work01.swf");
resetAll(2);
this.myFlag = 1;
};
button3.onPress = function () {
container.loadMovie("team.swf");
resetAll(3);
this.myFlag = 1;
};
button4.onPress = function () {
container.loadMovie("credentials.swf");
resetAll(4);
this.myFlag = 1;
};
button5.onPress = function () {
container.loadMovie("careers.swf");
resetAll(5);
this.myFlag = 1;
};
button6.onPress = function () {
container.loadMovie("contact.swf");
resetAll(6);
this.myFlag = 1;
};
as
Code:
var i:Number;
for (i = 1; i < 7; i++)
{
var temp:Object = this["button"+i];
temp.myName = i;
temp.myFlag = 0;
temp.onRollOver = function()
{
if (this.myFlag != 1)
{
this.gotoAndPlay("in");
}
else
{
//
}
};
temp.onRollOut = function()
{
if (this.myFlag != 1)
{
this.gotoAndPlay("out");
}
else
{
//
};
};
//temp.onPress = function()
//{
//resetAll(this.myName);
//this.myFlag = 1;
//};
};
function resetAll(a)
{
var i:Number;
for (i = 1; i < 7; i++)
{
var temp:Object = this["button"+i];
temp.myFlag = 0;
if (temp._currentframe == 7 && a != i)
{
temp.gotoAndPlay("out");
};
};
};
Please advise.
Unable To Reuse Attached MCs?
okay so I have a function that manipulates some previously attached MCs. When the function runs it positions the MC, then runs an onEnterFrame to stretch the clip out to a certain point and then I have a delete ending the onEnterFrame function. The problem seems to be that when I call the function again and I try to reuse an attached MC the function doesn't work.
Code:
function addMask(mcName, xloc, yloc, w, h, mcRate, maxWidth) {
mcName._x = xloc;
mcName._y = yloc;
mcName._width = w;
mcName._height = h;
mcName.onEnterFrame = function() {
trace("still running addMask: " + mcName);
if (mcName._width < maxWidth) {
mcName._width += mcRate;
mcName._x -= mcRate;
}else{
gotoAndStop(_root.jump);
mcName._x = -1000;
mcName._width = 1;
delete this.onEnterFrame;
trace("addMask killed: " + mcName);
}
}
}
addMask(mask1_mc, 243, 155, 1, 230, 60, 300);
So is the delete this.onEnterFrame somehow deleting the attached MC?
When I comment out the delete actions it sort of works in that I can call a MC multiple times to do that same thing, but I can't call the same mc at two different times to work in two different positions. If that makes any sense. Also it leaves the onEnterFrame actions running forever which probably causes problems.
fla is here
click on the "materials" button on the bottom to see the scripted transition, click "home" on the menu to go back.
Unable To Understand... PHP And Flash
Hi everyBody!
Hard
In my office we have a server for all users only to store data, and I use it to make a little software to save information, where every rows save info when an object is selled (date, name, number, etc..)
This program runs it prefectly but there's only one program I'm not able to solve. When I run the application from flash, (flash player) there's no problem, but when I run it from internet explorer some queries dn't work
Wha't I'm doing wrong?
XML Data Loading, But Unable To Use It
I've successfully loaded some simple xml into an array with two simple attributes associated with each entry, but I can't seem to figure out how to reference it or use it after it's loaded.
here is the code:
Code:
var vlist:XML = new XML();
vlist.ignoreWhite = true;
vlist.onLoad = function() {
var videos:Array = this.firstChild.childNodes;
for(i=0;i<videos.length;i++) {
videos[i].attributes.desc;
videos[i].attributes.url;
// these traces return the correct data for each entry
trace(videos[i].attributes.desc);
trace(videos[i].attributes.url);
}
}
var vidList:Object = new Object();
vlist.load("videos.xml");
// this is what I can't seem to figure out. hy does this work above and not here? I'd like to access specific values within the array after the XML is loaded.
trace(videos[0].attributes.desc);
trace(videos[0].attributes.url);
// is this a scope issue? do I have to make it _global or something? the output is "undefined"
and the xml is:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<videos>
<video url="http://med.cornell.edu/cms/nyp/media/swf/flv/innovations_2006_1.flv" desc="Non-Surgical Treatments for Heart Disease" />
<video url="http://med.cornell.edu/cms/nyp/media/swf/flv/milstein-flythrough.flv" desc="Vivian and Seymour Milstein Family Heart Center" />
<video url="http://med.cornell.edu/cms/nyp/media/swf/flv/psychiatry.flv" desc="Psychiatry" />
</videos>
Unable To POST Data?
Hi All,
I hope someone here can offer some advice..
I'm trying to POST form data to a page that resides on a different domain to the one hosting the .swf.
I have a movie called form with some text fields in it, and just want to post that data when a 'submit' button is clicked. On the button I have
Code:
on (release){
getUrl("http://my.other.url/page.cfm", "", "POST")
}
Flash is completely ignoring the POST and doing a GET request, which isn't any good as I'll be posting lengthy data to the other site.
Can someone please tell me why it won't POST!?
This is with Flash 8 on MacOS doing the publishing and the latest flash plugin on the client side.
Unable To Get File Size
Hi! Can anyone tell me if this code is correct???
I think everything is alright. But I'm not sure about the preloader! Because it simply isn't working!
the code jumps right to these traces:
percentagem 100
DONE!!! _level0.galeriaCompleta.galeria9_mc
percentagem 100
DONE!!! _level0.galeriaCompleta.galeria8_mc
percentagem 100
DONE!!! _level0.galeriaCompleta.galeria7_mc
percentagem 100
DONE!!! _level0.galeriaCompleta.galeria6_mc
percentagem 100
DONE!!! _level0.galeriaCompleta.galeria5_mc
percentagem 100
DONE!!! _level0.galeriaCompleta.galeria4_mc
percentagem 100
DONE!!! _level0.galeriaCompleta.galeria3_mc
percentagem 100
DONE!!! _level0.galeriaCompleta.galeria2_mc
percentagem 100
DONE!!! _level0.galeriaCompleta.galeria1_mc
percentagem 100
DONE!!! _level0.galeriaCompleta.galeria0_mc
Here's the code:
var galeriaXML = new XML();
galeriaXML.ignoreWhite = true;
galeriaXML.onLoad = function(sucess)
{
if(sucess)
{
geraGaleria(this);
rootNode=galeriaXML.firstChild;
firstNode=rootNode.firstChild;
}
}
function geraGaleria(ficheiro)
{
elementos=ficheiro.firstChild.childNodes;
for(i=0;i<elementos.length;i++)
{
var itemAColocar=elementos[i];
foto=itemAColocar.attributes.foto;
fotoGr=itemAColocar.attributes.fotoGr;
geraItemAColocar(i, foto, fotoGr);
}
}
function geraItemAColocar(i, foto, fotoGr)
{
//trace("geraItemAColocar");
galeriaCompleta["galeria"+i+"_mc"].galeria_mc._indexThumb=i;
galeriaCompleta["galeria"+i+"_mc"].galeria_mc._alpha=100;
galeriaCompleta["galeria"+i+"_mc"].preGaleria._visible=true;
galeriaCompleta["galeria"+i+"_mc"].preGaleria._alpha=100;
galeriaCompleta["galeria"+i+"_mc"].galeria_mc.loadMovie("images/" + foto + ".jpg");
galeriaCompleta["galeria"+i+"_mc"].preGaleria._visible=true;
//galeriaCompleta["galeria"+i+"_mc"]._visible=false;
galeriaCompleta["galeria"+i+"_mc"].onEnterFrame = function()
{
filesize = this.galeria_mc.getBytesTotal();
loaded= this.galeria_mc.getBytesLoaded();
percentagem= Math.round(100*(loaded/filesize));
this.preLoaderText.valorPercentagem.text= percentagem+"%";
trace("teste "+percentagem);
if(percentagem >= 99)
{
mover(100, 0, 1, this.preGaleria, "_alpha");
setTimeout(visibleFalse, 1100, this.preGaleria);
mover(5, 156, 2, this.mascaraGaleria, "_width");
mover(100, 0, 2, this.preLoaderText, "_alpha");
this._alpha=100;
this._visible=true;
this.onEnterFrame=null;
trace("DONE!!! "+ this);
}
}
}
Sorry about my English!
Can anyone tell me one "error free" way to get the correct file size, or halt the code while I don't have the right info about the loaded image/swf???
My mind is waaaaaasteeeed!
Unable To 'hide' A Hitarea Of Mc?
Hello,
i'm having a very strange and frustrating problem :
i have a few mc's on stage, and i want to hide them with another mc at a certain point, and so i also want to disable their onRollOver function. So i just put a big square over the mc that i want to hide to make it invisible. It works for the mc itsself, but the hitarea of the mc that is hidden is still active, although there is an other mc hiding it????
Extra information : i haven't declared any external hitArea of the mc that i want to hide, so it couldn't be that the hitarea isn't obscured by the square.
The square that hides the mc is on the top layer! So all the other mc's are under it!
Even more strange : it works like it should in 2 of the 10 mc, with 8 others, you can still trigger an onRollOver of the hidden mc, althoug the mc is invisible by the square that hides it....
I tried right click and select 'bring to front' but that doesn't work either.
I have no depth assignements in my actionscript. So it couldn't be that there are some unnoticed depth swaps...
really desperate ....
can anyone hepl please???
thnx!
Unable To Print As Bitmap
I have something that I want to print, and I really need to just print it as a bitmap.
when I set my print job options object to print as bitmap, nothing prints at all. I get a blank page
ActionScript Code:
/* PRINTS A BLANK PAGE */
var pj:PrintJob = new PrintJob();
var pjOptions:PrintJobOptions = new PrintJobOptions(true);
if(pj.start)
{
pj.addPage(myClip,null,pjOptions);
pj.send();
}
In testing I verified that if I run the same code with PrintAsBitmap set to false, I get a print with my content, but it just doesn't print quite right.
ActionScript Code:
/*PRINTS MY CONTENT, BUT CAN'T HANDLE A FEW GRADIENTS */
var pj:PrintJob = new PrintJob();
var pjOptions:PrintJobOptions = new PrintJobOptions(false);
if(pj.start)
{
pj.addPage(myClip,null,pjOptions);
pj.send();
}
Basically if I tell it to print as bitmap, I get a blank page. I can't figure out why. Anybodoy have an idea why that would happen?
Unable To Play Certain .flv Files
So I have a bunch of .VOB (.mpeg) files, which were generated by a vcr->dvd recorder (so there is no CSS involved). I had a batch of 10 files, and 4 of them can't be played back by FMS after converting them with the Adobe Flash CS3 Video Encoder (they were all encoded at the same time, and have tried multiple times).
The files in question play back in VLC just fine, Gspot doesn't seem to show any differences either. I am running the latest development version of FMS 3.
The Application Event Log shows the following error each time I try to play one of these 'bad' files:
Quote:
Error from libflv.dll: File contains bad data : C:Documents and SettingsetronDesktop\_video_file01.flv (TCFLVData.cpp:1786).
One thing I did notice is that the Video Encoder software won't let me adjust the timeline (i.e. if I only want to process the first 60 seconds), but it does show the preview frame without errors.
I have tried other encoders such as SUPER, VLC, etc., and I don't have any issues with those files, but they don't support On2 VP6, so I assume the issue is with the CS3 Flash Video encoder.
Does anyone have any ideas what might be causing this, or how I can work around this? Thanks!
|