ActioScript o LocuraScript :)
Hola amigos, os cuento, tengo una peli y dentro de esta un
movieclip que a
su vez carga un .swf dentro de otro movieclip vacio y con su
instancia, pero
no consigo controlarlo, me explico.
loadMovie("videonoti.swf", "videonoti");
setProperty("videonoti", _x, "-700"); FUNCIONA BIEN
setProperty("videonoti", _y, "-221"); FUNCIONA BIEN
setProperty("videonoti", _height, "550"); ME TOMA EL PELO NO
HACE NADA
Porque?
setProperty("videonoti", _width, "750"); ME TOMA EL PELO NO
HACE NADA Porque
stop();
Porque no funciona? , lo que me interesa es controlar el
tamaño del clip
donde se ha cargado el .swf, pero ni caso.
Me podeis ayudar u orientar?
Gracias a todos.
Saludos
Por fin!!!
Gracias chus, ahora si que funciona.
Si no es mucho pedir,....
Porque no funcionaba _widht y _xscale si?
Que diferencia hay entre _widht y _xscale?
Porque en el editor de acciones, no aparecen _xscale _yscale
en vez de
_height y _widht??
Gracias por tu ayuda, campeon!
Saludos
"chus" <"chus["@]gamail.com> escribió en el
mensaje
news:f07krs$naj$[email protected]..
> Prueba con:
> _xscale, _yscale en vez de height e width
>
> saludos,
> chus
>
>
> Marta Salas escribió:
>> Hola amigos, os cuento, tengo una peli y dentro de
esta un movieclip que
>> a su vez carga un .swf dentro de otro movieclip
vacio y con su instancia,
>> pero no consigo controlarlo, me explico.
>>
>>
>> loadMovie("videonoti.swf", "videonoti");
>> setProperty("videonoti", _x, "-700"); FUNCIONA BIEN
>> setProperty("videonoti", _y, "-221"); FUNCIONA BIEN
>> setProperty("videonoti", _height, "550"); ME TOMA EL
PELO NO HACE NADA
>> Porque?
>> setProperty("videonoti", _width, "750"); ME TOMA EL
PELO NO HACE NADA
>> Porque ?
>> stop();
>>
>> Porque no funciona? , lo que me interesa es
controlar el tamaño del clip
>> donde se ha cargado el .swf, pero ni caso.
>>
>> Me podeis ayudar u orientar?
>>
>> Gracias a todos.
>>
>> Saludos
>>
Similar Messages
-
EASY Question - But Hard for the Actioscript inept
Ok,
So this is my first attempt at making a web page...
I am trying to simply make my little button display my movie
labeled "Content", I don't think I am doing somthing right...
Doh....
I have diffrent movies (p1 & p2) for button rollover
effects... and I have a seperate clip named content with labels for
"start1" and "start2" that I want to display when I click the
buttons
Anywho if you would like to take a look see I would be very
thankful:
http://www.itamidesign.com/test.fla
Thanks for your help...
-ToddSomething went wrong when I tried your link.
Is your movie inside your flash program or is it an external
movie?
If you have named your button something like myBtn, then you
can put in some actionscript to load an external movie such as:
myBtn.onRelease = function():Void
movieHolder.loadMovie("content");
where movieHolder is the name of an empty movie clip that you
place on the stage to hold external movies.
Alternately, you can add the code to the button itself. In
this case you don't need to give the button an instance name:
on (release)
movieHolder.loadMovie("content");
If your movie is already part of your Flash program, instead
of an external file, then you will need to go into the linkage
properties of the movie and check: "Export for ActionScript". You
do this by right clicking on the movie in the library. You must
give the movie a name when you do this. You can still call it
"Content". Next you use one of the formats listed above except
change loadMovie to attachMovie. (Actually they might both still
work, but I have been in the habit of using loadMovie for external
content and attachMovie for internal content. Don't ask me why, I
just try things and when they work, I tend to repeat that method of
doing things.)
For attachMovie, you will need to give your clip a level
number. You can hard code in a number if you want any movie you
attach to replace the prior movie or you can use:
movieHolder.getNextHighestDepth() if you want your movie to be
placed on top of anything else that you already have in the movie
holder without replacing it.
You can type loadMovie or attachMovie in the search bar of
the built in help menu to see more examples. If you have further
questions such as how to make the movie holder, be sure to ask a
follow up question. -
Hello I am trying to now implement xml into my flash
actioscript website and kinda put my self in a crash course in
learning it. I have found though that the books I am reading and
the flash ac tutorials are kinda confusing. I was wondering if
someone could review my xml code so that I can then use the
xmlconnector to attach things.
I have a question too.
I would like to upload all the xml, and images onto my
website, how does the xml connector know were my files are on the
web?
here is the xml that i need to see if it will write correctly
in the xml connector.
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/css"
href=bluelikethecolor.css"?>
<About>
<Aboutcompany>
Hello and thank you for your interest in my company. I am
excited to have this website up to showcase my abilities so that
you can see how we can contribute to your success. I have been
designing professionaly since 1998 and enjoy all aspects of design.
From assisting in corporate identity packages, to designing flash
websites for people to use.
</Aboutcompany>
<Experience>
I have worked for several companies and have been involved in
consultations to help people create truly amazing pieces for
companies. Here is a small list of the companies I have worked for.
The Employment Guide: shortly after recieving my design
certification back in 1998-1999. I created billboard ads for
countless companies for prospecting employees. I also created most
of all the special effects or logos for the Raleigh division of the
company.
DaeCreative/GoCuenca 2000-present: Because of recieving
numerous compliments for my work, and knowing and networking with
the right people, I was able to open my own webdesign company
called DaeCreative. I created a very large number of websites and
recieved contracts to design for Schools, Resteraunts, and even
hospitals. However my preferance now is not designing for large
companies rather the small businesses. For them I feel I can create
even better works as they can focus more so on design then vast
amounts of content. Here is some of the clients for
Daecreative.AWB, Spondylus, Medstay, Raliegh Community Hospital,
and many more which of course you can see in my portfolio some of
which being for Gocuenca my design company in Ecuador South America
of which I created over 20 websites in the year 2005.
</Experience>
<Resume>
<Name>David Blue</Name>
<Address>701 Buck Jones Rd
Raleigh NC 27606</Address>
<mobile>919-605-8701</mobile>
Known Programs: Proficient: Flash, Fireworks, Photoshop,
Illustrator, Quarkxpress, Dreamweaver, Indesign, Corel draw,
Microsoft Publisher, Word, Powerpoint.
Learning: xml, css, actionscript, Premier.
</Resume>
</About>
and here is my website were it will all be attached too
www.bluelikethecolor.com
and here is the code for that website:
//mcAbout rollover
var mcAbout:MovieClip
mcAbout.onRollOver = function(){
mcAbout.gotoAndPlay("rollover");
mcAbout.onRollOut = function(){
mcAbout.gotoAndPlay("rollout");
//mcEmail
var mcEmail:MovieClip
mcEmail.onRollOver = function(){
mcEmail.gotoAndPlay("rollover");
mcEmail.onRollOut = function(){
mcEmail.gotoAndPlay("rollout");
var mcEmail:MovieClip
mcEmail.onMouseUp = function(){
gotoAndPlay(1)
//galleries
var mcGallery:MovieClip
mcGallery.onRollOver = function(){
mcGallery.gotoAndPlay("rollover");
mcGallery.onRollOut = function(){
mcGallery.gotoAndPlay("rollout");
var mcGallery:MovieClip
mcGallery.onMouseUp = function(){
gotoAndPlay(1)
//mcresume
var mcResume:MovieClip
mcResume.onRollOver = function(){
mcResume.gotoAndPlay("rollover");
mcResume.onRollOut = function(){
mcResume.gotoAndPlay("rollout");
var mcResume:MovieClip
mcResume.onMouseUp = function(){
_root.gotoAndPlay(1)
//drag again
var mcAbout:MovieClip;
mcAbout.onPress = function(){
startDrag("mcAbout");
mcAbout.onRelease = function(){
stopDrag();
var mcEmail:MovieClip;
mcEmail.onPress = function(){
startDrag("mcEmail");
mcEmail.onRelease = function(){
stopDrag();
var mcgallery:MovieClip;
mcGallery.onPress = function(){
startDrag("mcGallery");
mcGallery.onRelease = function(){
stopDrag();
as you can see when you roll over the icons popups appear
with a menu. it is here were I wish to add the xml buttons too.
I will need to make this a little more intensive for example
soon I will be adding 3 buttons going to my portfolio, so I wll
need xml to also guard my .swf files, jpgs(thumbnails) and
availability graphics. will I be able to do so with relative ease
or no?
My website is not too big, i got the idea to use the xml
connector from the total training dvd videos I have been using to
teach me actionscript and it looked perfect for what I need.
Thanks for any and all help.
DavidI have also tired the following jabber-config.xml file but with no success:
<?xml version="1.0" encoding="utf-8"?>
UDS
true
http://sf.domain.com.au/jabber/%%uid%%.jpg -
Flash or Director for a Platform Game
Hi all,
First of all, I want to say that this post is not meant to
start another fight about these 2 great app, I just want your
advice about which one can give me better performance on the web. I
feel comfortable using Lingo and Actioscript 3, however I am not a
programmer but I can do things move. I am posting here because, I
know many Director users are now using Flash.
These are some considerations:
1. If I go for Actionscript 3 the game will be Tile-Based
2.Using Tile-Based with AS3, I think, copyPixel will be a
good option
3. If I go for Director both techniques, Art-Based and Tile
Based are valid options
4. I have not decide which collision method to use in both
cases
5. I will need connection to MySql, with Flash I know how to
do it, with Director I do not
My concern is performance, not programming. I will appreciate
your feedback
RegardsIt's okay but it limits your chances of getting help.
-
Hi All,
I am working on adobe air. Can any one explain how to create menus in adobe air using flash actioscript 3.0.
I tryed in google but i i didn't find good results.
Thanks in advance
Regards,
KiranThere are many types of menus
try with this link from google
http://theflashconnection.com/content/create-dropdown-menu-as3 -
I am trying to fetch values from HTML -embed tag into Actioscript 3.0 (Flash CS4). And sending the value to Javascript using ExternalInterface.call
method. But its not working on all browsers. I am getting Security Sandbox Violation error. Following is the HTML in which embed tag and javascript is
included. Thank you.
HTML Code :-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>singleSelect</title>
<script language="JavaScript" type="text/javascript">
<!--
//v1.7
// Flash Player Version Detection
// Detect Client Browser type
// Copyright 2005-2008 Adobe Systems Incorporated. All rights reserved.
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
var isFireFox = (navigator.appVersion.indexOf("Firefox") != -1) ? true : false;
function ControlVersion()
var version;
var axo;
var e;
// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry
try {
// version will be set for 7.X or greater players
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
version = axo.GetVariable("$version");
} catch (e) {
if (!version)
try {
// version will be set for 6.X players only
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
// installed player is some revision of 6.0
// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
// so we have to be careful.
// default to the first public version
version = "WIN 6,0,21,0";
// throws if AllowScripAccess does not exist (introduced in 6.0r47)
axo.AllowScriptAccess = "always";
// safe to call for 6.0r47 or greater
version = axo.GetVariable("$version");
} catch (e) {
if (!version)
try {
// version will be set for 4.X or 5.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
version = axo.GetVariable("$version");
} catch (e) {
if (!version)
try {
// version will be set for 3.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
version = "WIN 3,0,18,0";
} catch (e) {
if (!version)
try {
// version will be set for 2.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
version = "WIN 2,0,0,11";
} catch (e) {
version = -1;
return version;
// JavaScript helper required to detect Flash Player PlugIn version information
function GetSwfVer(){
// NS/Opera version >= 3 check for Flash plugin in plugin array
var flashVer = -1;
if (navigator.plugins != null && navigator.plugins.length > 0) {
if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
var descArray = flashDescription.split(" ");
var tempArrayMajor = descArray[2].split(".");
var versionMajor = tempArrayMajor[0];
var versionMinor = tempArrayMajor[1];
var versionRevision = descArray[3];
if (versionRevision == "") {
versionRevision = descArray[4];
if (versionRevision[0] == "d") {
versionRevision = versionRevision.substring(1);
} else if (versionRevision[0] == "r") {
versionRevision = versionRevision.substring(1);
if (versionRevision.indexOf("d") > 0) {
versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
// MSN/WebTV 2.6 supports Flash 4
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
// WebTV 2.5 supports Flash 3
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
// older WebTV supports Flash 2
else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
else if ( isIE && isWin && !isOpera && isFireFox) {
flashVer = ControlVersion();
return flashVer;
// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
versionStr = GetSwfVer();
if (versionStr == -1 ) {
return false;
} else if (versionStr != 0) {
if(isIE && isWin && !isOpera && isFireFox) {
// Given "WIN 2,0,0,11"
tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"]
tempString = tempArray[1]; // "2,0,0,11"
versionArray = tempString.split(","); // ['2', '0', '0', '11']
} else {
versionArray = versionStr.split(".");
var versionMajor = versionArray[0];
var versionMinor = versionArray[1];
var versionRevision = versionArray[2];
// is the major.revision >= requested major.revision AND the minor version >= requested minor
if (versionMajor > parseFloat(reqMajorVer)) {
return true;
} else if (versionMajor == parseFloat(reqMajorVer)) {
if (versionMinor > parseFloat(reqMinorVer))
return true;
else if (versionMinor == parseFloat(reqMinorVer)) {
if (versionRevision >= parseFloat(reqRevision))
return true;
return false;
function AC_AddExtension(src, ext)
if (src.indexOf('?') != -1)
return src.replace(/\?/, ext+'?');
else
return src + ext;
function AC_Generateobj(objAttrs, params, embedAttrs)
var str = '';
if (isIE && isWin && !isOpera && isFireFox)
str += '<object ';
for (var i in objAttrs)
str += i + '="' + objAttrs[i] + '" ';
str += '>';
for (var i in params)
str += '<param name="' + i + '" value="' + params[i] + '" /> ';
str += '</object>';
else
str += '<embed ';
for (var i in embedAttrs)
str += i + '="' + embedAttrs[i] + '" ';
str += '> </embed>';
document.write(str);
function AC_FL_RunContent(){
var ret =
AC_GetArgs
( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
, "application/x-shockwave-flash"
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
function AC_SW_RunContent(){
var ret =
AC_GetArgs
( arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
, null
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
var ret = new Object();
ret.embedAttrs = new Object();
ret.params = new Object();
ret.objAttrs = new Object();
for (var i=0; i < args.length; i=i+2){
var currArg = args[i].toLowerCase();
switch (currArg){
case "classid":
break;
case "pluginspage":
ret.embedAttrs[args[i]] = args[i+1];
break;
case "src":
case "movie":
args[i+1] = AC_AddExtension(args[i+1], ext);
ret.embedAttrs["src"] = args[i+1];
ret.params[srcParamName] = args[i+1];
break;
case "onafterupdate":
case "onbeforeupdate":
case "onblur":
case "oncellchange":
case "onclick":
case "ondblclick":
case "ondrag":
case "ondragend":
case "ondragenter":
case "ondragleave":
case "ondragover":
case "ondrop":
case "onfinish":
case "onfocus":
case "onhelp":
case "onmousedown":
case "onmouseup":
case "onmouseover":
case "onmousemove":
case "onmouseout":
case "onkeypress":
case "onkeydown":
case "onkeyup":
case "onload":
case "onlosecapture":
case "onpropertychange":
case "onreadystatechange":
case "onrowsdelete":
case "onrowenter":
case "onrowexit":
case "onrowsinserted":
case "onstart":
case "onscroll":
case "onbeforeeditfocus":
case "onactivate":
case "onbeforedeactivate":
case "ondeactivate":
case "type":
case "codebase":
case "id":
ret.objAttrs[args[i]] = args[i+1];
break;
case "width":
case "height":
case "align":
case "vspace":
case "hspace":
case "class":
case "title":
case "accesskey":
case "name":
case "tabindex":
ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
break;
default:
ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
ret.objAttrs["classid"] = classid;
if (mimeType) ret.embedAttrs["type"] = mimeType;
return ret;
-->
</script>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<embed src="singleSelect.swf?foo=bar&foo2=bar2&qtitle=q1&qtext=I'm a Complete Sports freak&dValues=1,2,3,4&dLabels=Agree Completely,Agree Somewhat,No Opinion,No Answer&imgNo=1&type=SingleSelect" quality="high" bgcolor="#FFFFFF" width="600" height="400" name="java_Sample" align="left" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>
<SCRIPT type="text/javascript">
function finaldata(data1,data2)
//document.getElementById('q3_1').checked=true;
alert("Captured: "+data1+" "+data2);
</SCRIPT>
<script language="JavaScript" type="text/javascript">
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
'width', '550',
'height', '400',
'src', 'singleSelect',
'quality', 'high',
'pluginspage', 'http://www.adobe.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'singleSelect',
'bgcolor', '#ffffff',
'name', 'singleSelect',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','always',
'movie', 'singleSelect',
'salign', ''
); //end AC code
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="550" height="400" id="singleSelect" align="middle">
<param name="allowScriptAccess" value="always" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="singleSelect.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> <embed src="singleSelect.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="singleSelect" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>
</noscript>
</body>
</html>
Actionscript code :-
/*Single Select Questionnaire*/
import flash.external.ExternalInterface;
import flash.display.DisplayObject;
import flash.display.Graphics;
import flash.display.Shape;
import flash.display.Sprite;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.events.Event;
import flash.net.*;
import flash.display.Loader;
import flash.system.Security;
Security.allowDomain("*");
var allFlashVars:Object=LoaderInfo(this.root.loaderInfo).parameters;
var theVariableValue:String = new String();
var theVariableName:String = new String();
var QText:TextField = new TextField();
var mulOptions:TextField;
var arr1:Array = new Array();
var arr2:Array = new Array();
var format:TextFormat = new TextFormat();
var format1:TextFormat = new TextFormat();
var i:uint;
var m:uint=0;
var OptionLength:Number;
var typeOfQue:String;
var newButton:Radiooption;
var myArray:Array = new Array();
var selectedOption:Array = new Array();
function createButtonGroups(){
if (m < 1) {
myArray[m] = new Array();
for (var r:int = 0; r<OptionLength; r++) {
newButton = new Radiooption();
newButton.name = "Option"+m+r;
//trace("newButton.name : "+newButton.name);
newButton.x = m * 120 + 80;
newButton.y = r * 60 + 100;
addChild(newButton);
newButton.flags=true;
newButton.addEventListener(MouseEvent.MOUSE_UP,optionChosen);
newButton.val = arr2[r].toString();;
myArray[m].push(newButton);
if (r == OptionLength) {
m++;
r = 0;
createButtonGroups();
function optionChosen (event:MouseEvent) {
var currStr:String = event.currentTarget.name.toString();
//ExternalInterface.call("finaldata", currStr.toString());
var thisButton:Object = event.currentTarget;
for (var l:* in myArray) {
trace("myArray[l].indexOf(thisButton) : "+myArray[l].indexOf(thisButton));
if (myArray[l].indexOf(thisButton) != -1) {
trace("l : : "+l);
var thisArray = myArray[l];
trace("thisArray : "+myArray[l]);
for (var b:* in thisArray) {
trace("b : :"+thisArray[b]);
thisArray[b].radioBox.gotoAndStop(1);// turn off all of the buttons in this row: thisArray[b] do something;
thisButton.radioBox.gotoAndStop(2);// turn on the button that was selected: thisButton do something else;
for (i=0;i<selectedOption.length;i++) {
if(selectedOption.length != 0){
var newArr:ArrayFun = new ArrayFun(selectedOption);
newArr.removeEle(selectedOption[i]);
selectedOption.push(thisButton.val.toString());
//selectedOption.removeDuplicates(selectedOption);
//var passVar = selectedOption;
ExternalInterface.call("finaldata", selectedOption.toString(),thisButton.name.toString());
function ParseCountry(allFlashVars):void {
format.font="Arial";
format.color="0x3D8759";
format.size="20";
format.bold=true;
format.underline=false;
format1.font="Arial";
format1.color="0x3D8759";
format1.size="15";
format1.bold=true;
format1.underline=false;
for (theVariableName in allFlashVars) {
theVariableValue = String(allFlashVars[theVariableName]);
if(theVariableName == "qtext"){
//ExternalInterface.call("finaldata", theVariableValue.toString());
addChild(QText);
QText.text = theVariableValue.toString();
QText.x = 0;
QText.y = 0;
QText.autoSize = "left";
QText.setTextFormat(format);
if(theVariableName == "dLabels"){
trace("yes");
arr1 = theVariableValue.split(",");
//output.appendText("\t" + arr[0]+"\n\n");
OptionLength = arr1.length;
for(i=0;i<arr1.length;i++){
mulOptions = new TextField();
mulOptions.text = arr1[i];
mulOptions.width = 120;
mulOptions.height = 60;
//mulOptions.wordWrap = true;
mulOptions.autoSize = "left";
//mulOptions.multiline = true;
mulOptions.setTextFormat(format1);
mulOptions.x = 120;
mulOptions.y = 100+(i*60);
addChild(mulOptions);
createButtonGroups();
if(theVariableName == "dValues"){
arr2 = theVariableValue.split(",");
//Initiate
ParseCountry(allFlashVars);where are you passing flashvars?
-
Learning interactions and Flash player
I am trying to place a standalone multiple choice learning
interaction on my timeline. I can place it on the stage and see
everything in the component inspector, (only broke apart once!) but
when I test it, it appears that I cannot see any of the UI
components such as the checkbox or radio buttons. Searching this
forum, someone suggested previously that I had to be running Flash
Player 65? I installed Flash Player 9 from this site to ensure I
had the latest and it still does not work. I tried it at work,
where we are running Flash Player 7 and it seems to work fine. Is
it still my Flash Player? Do these interactions ONLY work with a
specific player? If so I need to know so that I can specify that in
the delivery. Thanks.open the fla in flash and see if there's an flvplayback component on stage. if there is change its size to match your flv. if not, search for .source (as3) or .contentPath (as2). that will lead you to the object that plays the flv and you can assign its size using actioscript .
-
Xml gallery with createEmptyMovieClip and attachMovie
how i can make it so that flash loads in the xml document
containing my images, create an empty movieclip for each image, and
actually display that image from the xml file in the newly created
empty movie clip.
Please if some one knows..
I'm new in Flash and Actioscript.
Thanks.how i can make it so that flash loads in the xml document
containing my images, create an empty movieclip for each image, and
actually display that image from the xml file in the newly created
empty movie clip.
Please if some one knows..
I'm new in Flash and Actioscript.
Thanks. -
Help..please.....save ...
hi guys..
i have create an avtar in flash..supoose when i change the
accesseries of the character then i want to save it ... when i
presss save...(is it possible to save the current image and jpeg
through actioscript....?? i hope i m clear..plz let me know if
anyone of u done something like this \.......
thanking you allHi,
1) Pretty sure that's not legal, certainly isn't kosher!
2) Even if you could edit it you can't beat the trail through the networks.
3) I really don't think you should ask people to help you with something like this.
Thanks
Bifocals
Please close the thread, OK?
Thanks
Message Edited by Bifocals on 11-16-2008 01:21 AM
Click Accept as Solution for posts that have solved your issue(s)!
Be sure to click Like! for those who have helped you.
Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure. -
Need some help scripting a specific menu animation, please
I have this Actioscript 2 file here (see attached).
I have the animation performing ok in the file, but I am having trouble getting the movie clip to play on mouseover. I could really use some advice on this... I've been through a number of tutorials, but cannot get this file to play nice.
On mouseover, the menu should animate down (play the clip). This brings up another question, however... How do I get the menu to receed (animate up) when the cursor leaves the button region?
Thanks in advance for any help you all can provide!They will need to be workable links eventually - right now, the text is not even correct.
The buttons are created, but they are not set up to link yet - I had wanted to see if I could get the mouseover on and off working first. -
Does anybody know how to create a smooth JPG movement like
this
http://www.beverlyhillshotel.com/
All the thing try (Actioscript _xscale etc.) end up looking
bad......
Need some help here
Thanks in advance
Martin, HollandI'd suggest turning up your frame rate, from the default
12fps. 24 - 30fps
is a typical rate. Otherwise, there's no secret being used
there, just
simple scaling / moving.
Dave -
Head Developer
www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ -
I can't download "com.adobe.audio.format.*" library. Where can I download it without a mxml tag? And Here will be a solution for actioscript project only. And I searched in the Internet, in the Flash Builder 4.6... In the "com.adobe" there is the "view" package by default.
Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
(99467) -
Question about NetStream.onPlayStatus
I have an external flv which I want to go back to the
beginning once it is finished so the viewer can watch it again
without having to reload the page. When I posted this question in
the Actioscript forum someone suggested that I use
NetStream.onPlayStatus (I'm using NetStream.pause and
NetStream.seek for the other controls) but when I tried to use it I
got an error saying "there is no property with the
name'onPlayStatus'". I am using Flash MX 2004. Is this property
only available in Flash Media Server. If so does anybody know
another way of basically doing this:
netStream.onPlayStatus = function(reset) {
if (reset.code == "NetStream.Play.Complete") {
netStream.seek(0);
};I don't know how to use it but there is something called
NetStream.onPlayStatus. This is from the Flash Media Server
LiveDocs:
NetStream.onPlayStatus
Availability
* Flash Player 6.
* Flash Media Server 2.
Usage
public onPlayStatus = function(infoObject:Object) {}
Parameters
infoObject An object containing an error or status message.
For more information about this parameter, see NetStream
information objects.
Returns
Nothing.
Description
Event handler; invoked when a NetStream object has completely
played a stream. The information object gives extra information
when a NetStream object has switched from one stream to another
stream in a playlist (NetStream.Play.Switch) or when a NetStream
object has played to the end (NetStream.Play.Complete). If you want
to respond to this event handler, you must create a function to
process the information object sent by the server. For more
information, see Client-Side Information Objects.
Example
The following example displays data about the stream in the
Output panel:
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null); var stream_ns:NetStream = new
NetStream(connection_nc); my_video.attachVideo(stream_ns);
stream_ns.play("video1"); stream_ns.onPlayStatus =
function(infoObject:Object) {
trace("NetStream.onPlayStatus called: ("+getTimer()+" ms)");
for (var prop in infoObject) {
trace("\t"+prop+":\t"+infoObject[prop]);
trace("");
I tried .onStatus but that didn't work. -
I just downloaded my first trial version of flash. I do not really know a whole lot about the way everything works but I've been trying to learn as I go. I have created a small intro that I would like to play at the start of my youtube videos, I'm not real sure how to do this, can someone offer some help or advice as to how I need to save or convert and then use the intro to tie them both together? Thanks!!
Youtube doesn`t accept swf files to upload, you have to convert your animation to a videofile.
There are different options here:
1.If your animation file contains no actioscript and no nested movieclips you can directly export from flash to video
File>Export>Export Movie>Quicktime
2.If you want to use a video programm like Premiere/After Effects to composite your intro manually with your video files
File>Export>Export Movie>PNG Sequence (Best Quality, Alpha Channel can be kept)
3.If your source files contains Actionscript or interactivity, you need to look into 3dParty products like this -
Hi
No doubt a silly question but using the trial for cs4 when I
load my FLA
file which is controlled by an actioscript file I see nothing
in the
proporties file.
In flash cs3 at the bottom of the screen were the permaters
set in the xml
file I seem unable to display this in cs4
can someone please give me a hint?
thanks
IanHi
Yes I can see it but what I have to do is use the selection
tool to pick the
edge of the component and then select f7
Just thought there must be an easier way
cheers
Ian
"kglad" <[email protected]> wrote in message
news:ghu0hi$qq6$[email protected]..
> can you see the entire properties panel? if not, drag it
so you can see
> all of it and click the edit buttons, if needed.
Maybe you are looking for
-
Hello, We have Windows Server 2012 and clients using Windows 8. We've been having some printer problems for awhile now that I haven't been able to figure out for the life of me. The main problem is the fact that printers are installed on computers
-
Hi All Apart from the built in style classes, I want to be able to use additional style classes within my Portal page. Is there a way to extend the oracle portal style with custom classes? Any other way to accomplish this? Regards Harry
-
Dear Master, I'm totally new to SAP NW CE 7.1. I've assigned to implement SAP NW CE 7.1. Currently I have one systen installed with SAP NW 7. Can I install SAP NW CE 7.1 on that system? Thanks a lot. Best Regards, Yan
-
Is there a way to refresh Messages in Mountain Lion?
I have noticed a reoccurring issue in regards to the Messages app in Mountain Lion. It often times does not sync messages correctly. Or sometimes it has a long delay for receiving messages, and out of order. The messages app for ios has a pull down t
-
I've got an sound issue with my HP Pavillion DV6904ca, it shows that there is no audio output device, orginally when i installed windows vista it had the same issue then it found it one time and then restarted comupter later and then when started up