Attach movie (not using a button)
I'm trying to attach movie on frame 1 on timeline. I'm using
the following script and nothing happens:
myMovieClip.attachMovie("graphic", "g", 1);
g._x = 260;
g._y = 250;
When I use this script attached to a button it's working:
on (press) {
attachMovie("graphic", "g", 1);
g._x = 260;
g._y = 250;
any idea what can be wrong?
>>myMovieClip.attachMovie("graphic", "g", 1);
This code assumes there is a movieclip with instance name
'myMovieClip' on level0.
>>do i have to give the movie clip an instant name
No.
>>i gave the name -graphic- in the linkage under
identifier
That's correct.
Similar Messages
-
I can not use the button of my iPod what can i do ?
I can not us the button of my iPod touch what. Can I do?
Try using the Assistive Touch Accessibility feature. See chapter 30 of the Users Guide.
iPod touch User Guide (For iOS 5.0 Software) -
Eliminate popup with information 'Do not use "Back" button'
Hello,
when your cursor is not focused in a ui-Element than in case of typing the back key, a popup open with message: please not use it. It is the same information in case of using the back button.
Q. Is there a possibility to prevent the popup. Not the function behind, only that the popup will not open?
Thanks a lot.
Regards,
Christian
Message was edited by:
Christian BreitenbachHi Christian,
There is no way to suppress the pop-up for your case . it is comming from the WD controllere. Just put the focus on any UI element then click on BACK manually.
Warm Regards,
Vijay -
Attach movie clips using seperate functions
I'm having a little trouble with the following code. I'm
calling two functions: init() and inittwo() to attach some movie
clips to the stage. If I comment one of them out, the other works
fine and the movement is okay. But as it is, only the "cloud" movie
clips are being attached. I need for the clips in the "dreamarray"
to be attached, and then for the "clouds" to be attached with a
second function. I'm probably not going about this the right way,
but I could sure use some help!
It would also be cool if I could attach the dreams at set "x"
values instead of random distribution. I'm not sure how to set a
seperate x value for each item in the array being attached.
var numClouds:Number = 10;
var fl:Number = 250;
var gravity:Number = .5;
var vx:Number = 0;
var vy:Number = 0;
var vz:Number = 0;
var friction:Number = .97;
var vpX:Number = Stage.width / 2;
var vpY:Number = Stage.height / 2;
var vpY:Number = 400;
var dreamarray:Array = new Array();
dreamarray[0] = "dreamone";
dreamarray[1] = "dreamtwo";
dreamarray[2] = "dreamthree";
init();
inittwo();
function init() {
for (var i:Number = 0; i<dreamarray.length; i++) {
var dream:MovieClip = attachMovie(dreamarray
, "dreamarray" + i, i);
//var dream:MovieClip = attachMovie("dreamone", "dreamone" +
i, i);
dream.x = Math.random() * 1600 - 800;
dream.y = 50;
dream.z = Math.random() * 800;
//trace("functioncall");
//tree.x = Math.random() * 2000 - 1000;
//tree.y = 50;
//tree.z = Math.random() * 10000;
function inittwo() {
for (var j:Number = 0; j<numClouds; j++) {
var cloud:MovieClip = attachMovie("cloud", "cloud" + j, j);
//tree.x = 400;
cloud.x = Math.random() * 1600 - 800;
cloud.y = 50;
cloud.z = Math.random() * 800;
function onEnterFrame():Void {
if(Key.isDown(Key.UP))
vz -= 1;
else if(Key.isDown(Key.DOWN))
vz += 1;
if(Key.isDown(Key.LEFT))
vx += 1;
else if(Key.isDown(Key.RIGHT))
vx -= 1;
if(Key.isDown(Key.SPACE))
vy += 1;
vy -= gravity;
vx *= friction;
vy *= friction;
vz *= friction;
for (var i:Number=0;i<dreamarray.length;i++) {
//i think there is a error here
var dream:MovieClip = this["dreamarray" +i];
dream.x += vx;
dream.y += vy;
dream.z += vz;
if(dream.y < 200)
dream.y = 200;
vy = 0;
if (dream.z <= -fl) {
dream.z += 1000;
else if(dream.z > 1000 - fl)
dream.z -= 1000;
var scale:Number = fl / (fl + dream.z);
dream._xscale = dream._yscale = scale*100;
dream._x = vpX + dream.x * scale/2;
dream._y = vpY + dream.y * scale/2;
//dream._x = dream.x * scale/2;
dream._alpha = scale * 60 + 40;
dream.swapDepths(-dream.z);
for (var j:Number=0;j<numClouds;j++) {
var cloud:MovieClip = this["cloud" + j];
cloud.x += vx;
cloud.y += vy;
cloud.z += vz;
if(cloud.y < 50)
cloud.y = 50;
vy = 0;
if (cloud.z <= -fl) {
cloud.z += 500;
else if(cloud.z > 10000 - fl)
cloud.z -= 10000;
var scale:Number = fl / (fl + cloud.z);
cloud._xscale = cloud._yscale=scale*200;
cloud._x = vpX + cloud.x * scale;
cloud._y = vpY + cloud.y * scale;
cloud._alpha = scale * 60 + 40;
cloud.swapDepths(-cloud.z);Hi Ive just taken a very quick look at your code and Ive
noticed at least one or two mistakes.
you are calling:
init();
inittwo();
before the actual functions have been declared.
Flash works from top to bottom when actioning code so by
calling:
init();
inittwo();
bofore the function has been declared and this will do
nothing as it cannot find the functions to call as they have been
declared AFTER the function calls.
The best thing to do is put any calls right at the bottom and
then you will know everything is ready to be triggered. -
Entire pdf is attached to email using submit button
Hi everyone,
When I was using Acrobabt 9 and I enabled usage rights in adobe reader for a pdf file containing a form, if that form contained a submit by email button, the form data was the only thing that got attached to the email.
I just tried enabling usage rights in adobe reader in Acrobat X and it seems that now when an submit by email button is pressed, the whole pdf is attached to the email.
Is this something that's new to Acrobat X? Is Adobe now allowing the whole pdf to be attached?
Appreciate any help.After creating the button, I chose the submit a form action in the properties dialogue box. I just checked and the export format is set to the complete pdf document.
Was this available in Acrobat 9 or is it something new in X? From memory, I thought that submitting the entire document by email was not allowed in earlier versions and that you needed to purchase an enterprise solution to get it to work.
Thanks -
Can Not Use LAST Button to go Back to DVR Recording
My LAST button works fine from chanell to channel. I can be watching a DVR recording, and the box will go back to the live channel I was watcing when I hit LAST. If the LASt button is pressed again, it does NOT go back to DVR. I know with Comcast, the LAST button would go back and forth from live to DVR recordings.
Anyone found a work around for this? We be nice to go back and forth from DVR to live TV with just using the LAST button.This is one of the few things I miss from Comcast. Monday nights I'll be watching 24 and recording Raw. I would always switch over to wrestling during the commercials on 24. A previous easy button press now requires navigating menus.
-
MOVE not used for key figs that can be aggregated (Amount) for InfoSource 0
Hi Experts,
I found a thread with the same subject, but the answer there was not fully satisfying to me. I guess there is a bug in delivered Business Content.
For DataSource 0CO_OM_CCA_9 the delta update method in ROOSOURCE is ADD" that means, the extractor should deliver an additive image with recordmode "A". But in fact the extractor checker delivers the records with recordmode " " which is After-Image.
On BW-Side the Business Content Update Rules from InfoSource 0CO_OM_CCA_9 to ODS-Object 0CCA_O09 delivers the update mode "overwriting" for the key figures i.e. 0AMOUNT. The plausibility check then shows me the same warning message RSAU198 with the description shown in subject line. But the activation of the update rules was accepted by the system.
In my opinion the correct update mode for ODS-Object would be "overwriting" for data records with record mode " ".
May I expect correct results in my key figure with "overwriting"?
Does anybody have an idea what to do with this issue?
Thanks for your help.
NorbertHello Norbert
This is very strange...as per your issue i checked and found that
In ROOSOURCE table Delta method is Additive
But when i checked the extractor output it is After image " ".
I also feel that it is a bug...
You can report it to SAP....
As the extractor is giving after image you can happily use overwritten in KF and that will work absolutely fine....
Correct me if i am wrong somewhere...
Thanks
Tripple k -
When i turned on my new Macbook in the morning today, i was at 56gb's, out of 80gb. Now it states its a 53gb's. i obtained some music files but wish now to delete them off my computer. how do i do this? how can i get precious gb's back?
isnt there something on the macbook to delete unwanted things? like control panel on windows? also need to delete photos and music and one movie. how do i do this? simply drag to trash can or is there more?
there has to be something already on my macbook that can delete and manage my unwanted files so i can attain more gb's back.In spotlight when I search Superman, it find it. I click it
and automatically Quicktime opens.
Clicking on the file will open the file. To the right of any items found with a Spotlight search is a light blue circle with an i in the center short for info. Click on this which provides the location of the file.
When downloading files from the internet with Safari, etc. you can designate a default location to save the downloaded files. I choose the Desktop and if the download is something I want to keep, I transfer it to the location of my choice.
2nd: Music. It did not originate from iTunes but is on iTunes now.
I deleted the original music folder with about 10 songs by taking it
to the trash can and emptying it...but its still playing in iTunes.
Would deleting it on iTunes completly delete it and providing me
with more gb's?
Yes as previously provided - if you have "Copy files to iTunes Music folder when adding to library" selected at Advanced under the General tab for iTunes preferences (which I believe is the default setting), then there are two copies of the music you obtained if the music was downloaded or placed on the hard drive.
The links that you provided... will they take care of these issues?
Can they EASILY help me delete unwanted items so i can obtain
back my gb's ?
The links I provided will not help you with the downloaded music and movie issue. I would create a music named folder to place downloaded music and a movie named folder to place downloaded movies, etc. This way, you know where any downloaded data is stored/located.
After importing any downloaded music into iTunes keeping "Copy files to iTunes Music folder when adding to library" selected, you can then delete the original downloaded files and the same when importing any downloaded pictures to iPhoto.
The first link I provided includes information on deleting applications and then 2nd link provides suggestions on freeing up hard drive space. -
I'm trying to do very simple, i'm attaching a map using
attachMovie, then I have two buttons one to print it and one to
close the movie. The code is contained within the timeline of the
attached movie not the root timeline.
attachMovie("mcmap", "map_mc", 200, {_x:100, _y:100});
close_btn.onRelease = function ()
{unloadMovie (map_mc)};
I hope I've set the linkage elements correctly and my movie
sits on the main stage and is not exported in the first frame.
Attaching the movie is fine, I just can't close or print the
map - I'm incorrectly targeting somehow but I just can't work out
why?
Can anyone help?I worked it out - every post I make is because I still forget
about using paths properly - I know it's something to do with this,
but I always forget - sorry!
_parent.map_mc.unloadMovie ()};
was the correct choice!!!!!!!!!!!! -
A month or two ago my ipod nano fell and now i can not use the buttons on my ipod! Please help! I love this ipod nad I dont want to get a new one!
First thing to try is a reboot of your device. Press and hold the Home and Sleep buttons simultaneously ignoring the red slider until the Apple logo appears. Let go of the buttons and let the device restart. See if that fixes your problem.
This fixes many little annoyances like this. Hope it works for you. -
when I open multiple tabs which do not fit the tab strip I have to move through tabs using scroll buttons. is there any way way I can stack the tabs on each other or suggest me a add-on which can help me achieve this
You can consider to access the tabs via the list all tabs button.
You see the "List All Tabs" button in current Firefox versions if there are that many tabs open that you get the Tab bar scroll buttons appearing.
* Permanent List-all-tabs Button: https://addons.mozilla.org/firefox/addon/permanent-listalltabs/
The Custom Tab Width extension adds CSS rules to adjust the tab width settings as set by the browser.tabs.tabMinWidth and browser.tabs.tabMaxWidth prefs on the <b>about:config</b> page.
* Custom Tab Width: https://addons.mozilla.org/firefox/addon/custom-tab-width/
You can achieve the same with code in userChrome.css.
The customization files userChrome.css (user interface) and userContent.css (websites) are located in the chrome folder in the Firefox profile folder.
*http://kb.mozillazine.org/Editing_configuration
<pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
#tabbrowser-tabs ~ #alltabs-button { visibility:visible!important; }
.tabbrowser-tab[fadein]:not([pinned]) { min-width: 100px !important; max-width: 250px !important; }
</nowiki></pre> -
Buttons in an attached movie from library
I used the tutorial posted at
http://www.layersmagazine.com/flash-attaching-movieclips-actionscript.html
Now I have a button on my stage that attaches a movie from the
library.
on (release) {
this.holder.attachMovie(“contents”,”contentslinks”,1);
It works fine but I also have buttons inside the attached
movie clip that need to control a movie that is already on the
stage.
contentslinks.contents_link_1.onRelease = function() {
content_mc._visible = false; book_mc.directGotoPage(4);
If I just place the attached movie on the stage the buttons
work but I when I proceed to use attachMovie, they do not work. How
do I get the buttons in the attached movie to address the movie
that is already on the stage?you can use the enabled property of movieclips to
enable/disable them. -
My macbook air will not attach mov files to gmail
Not able to attach mov files to gmail. I have a macbook air. this situation has occured over the last couple of weeks and this is not a large file.
Twyla2 wrote:
My Macbook Air will not connect to wifi. I have tried updating the software and still nothing. Any idea how to fix?
Care to share which software you were unsucessful in updating? Which OS version you are using?
===========
Try the basics first:
Change your router channel number. Most times this works & is all you have to do.
Disconnect & reconnect your modem. unplug it for about 10 seconds. Plug it back in. Do the same for Apple’s routers. Wait for everything to reboot.
System Preferences>Network
Click the Assist Me button.
In the next window that pops up, click the Diagnostic button & do the necessary.
Research Knowledge Base for network problems that pertain to the OS that is currently installed on your computer. See these basic networking KB Articles: http://support.apple.com/kb/HT1401 AirPort troubleshooting guide
http://support.apple.com/kb/HT4628 Wi-Fi: How to troubleshoot Wi-Fi connectivity
http://support.apple.com/kb/HT2712 Using network locations in Mac OS X
Manually provided DNS server addresses are higher priority than DHCP's
http://support.apple.com/kb/HT1714 Solutions for connecting to the Internet, setting up a small network, and troubleshooting
============================
What to do when you can't connect to the Internet
Also, run the Airport Utility app which is located inside the Utilities folder.
=====================
If using a Linksys router, contact LinkSys Customer Support and/or post in their forums.
If using Apple's Airport, please re-post over in one of the AirPort Forums. -
How to move node in treeView using two buttons ?
Hello ,
Am starter , and am working on a Winforms application.
I browse an XML file , then I populate treeview in my interface. I want to move selected node in the two sens ( up and down) using two button ( so not with events , normal drag and drop with mouse ) .
- I select the nod
- I click on the up button , then the node take the new place ( something like , drop and insert maybe )
I don't know if is possible to affect this events to button or they are another way to do this
this is my code concerning populating treeView :
private void browseSourceFileBtn_Click(object sender, EventArgs e)
var openSourceFile = openSourceFileDialog.ShowDialog();
if (openSourceFile == DialogResult.OK)
fichierSourcePath.Text = openSourceFileDialog.FileName;
// Connect the XML FILE DATABASE to the application interface
private void button1_Click(object sender, EventArgs e)
if (openSourceFileDialog.FileName == String.Empty)
MessageBox.Show("u should open a file", "Erreur de chargement", MessageBoxButtons.OK, MessageBoxIcon.Error);
else
try
MessageBox.Show("plz wait ");
statusLabel.Text = "Début de chargement du fichier";
var doc = new XmlDocument();
doc.Load(openSourceFileDialog.FileName);
sourceTreeView.Nodes.Clear();
var rootNode = new TreeNode(doc.DocumentElement.Name);
sourceTreeView.Nodes.Add(rootNode);
sourceTreeView.CheckBoxes = true;
sourceTreeView.AllowDrop = true;
DateTime starteTime = DateTime.Now;
BuildNode(doc.DocumentElement, rootNode);
DateTime endTime = DateTime.Now;
TimeSpan duree = endTime - starteTime;
sourceTreeView.ExpandAll();
sourceTreeView.Nodes[0].EnsureVisible();
string chargementTemps = "" + duree.Minutes + "min : " + duree.Seconds + "s : " + duree.Milliseconds + "ms";
statusLabel.Text = "Chargement effectué avec succés en :" + chargementTemps;
catch (Exception)
sourceTreeView.Nodes.Clear();
statusLabel.Text = "Echec de chargement";
thanks u a lotHi Nico68er,
According to your description, you'd like to move up or down the node in TreeView.
By reseraching, I found this post in StackOverFlow is similar with your issue.http://stackoverflow.com/questions/2203975/move-node-in-tree-up-or-down
From this answer.
You can use the following extensions
public static class Extensions
public static void MoveUp(this TreeNode node)
TreeNode parent = node.Parent;
TreeView view = node.TreeView;
if (parent != null)
int index = parent.Nodes.IndexOf(node);
if (index > 0)
parent.Nodes.RemoveAt(index);
parent.Nodes.Insert(index - 1, node);
else if (node.TreeView.Nodes.Contains(node)) //root node
int index = view.Nodes.IndexOf(node);
if (index > 0)
view.Nodes.RemoveAt(index);
view.Nodes.Insert(index - 1, node);
public static void MoveDown(this TreeNode node)
TreeNode parent = node.Parent;
TreeView view = node.TreeView;
if (parent != null)
int index = parent.Nodes.IndexOf(node);
if (index < parent.Nodes.Count -1)
parent.Nodes.RemoveAt(index);
parent.Nodes.Insert(index + 1, node);
else if (view != null && view.Nodes.Contains(node)) //root node
int index = view.Nodes.IndexOf(node);
if (index < view.Nodes.Count - 1)
view.Nodes.RemoveAt(index);
view.Nodes.Insert(index + 1, node);
Child nodes will follow their parents.
You could use this class in your program.
If you want to move the node up. Call the Extensions.MoveUp(this.treeView1.SelectNode)
private void button1_Click(object sender, EventArgs e)
if (this.treeView1.SelectedNode != null)
Extensions.MoveUp(this.treeView1.SelectedNode);
If you have any other concern regarding this issue, please feel free to let me know.
Best regards,
Youjun Tang
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Cursor moves by itself, types by itself, opens dashboard by itself, stops responding to keysto22000 - there be a good example. Seems to like the number 2. Have switched out keyboards to no avail. Do not use wireless. Does not start immediately upon turning on computer. Everything is okay from 10 to 20 minutes, then bang. Can deattach then attach keyboard and get a few moments of quiet. All this started today.
If the same erratic behavior occurs when the external KB and mouse are completely disconnected, I think it's time for a Genius Bar appointment to have the problem diagnosed.
http://www.apple.com/retail/geniusbar/
You'll probably want to get the machine revved up ahead of time so it's misbehaving when you walk in the door, rather than count on it to act up — or not — after you and the Genius have been standing around waiting for a while. (BTW, I'm assuming that once it starts acting up, it continues to do so until you give up and shut it down. Is that true?)
Maybe you are looking for
-
Message "are you sure you want to shut down your computer now"
I am in OS 10.8.5 on a Mac Pro. I get repeated message upon start-up "are you sure you want to shut down your computer now?" Restarting does not stop the message. Nor does canceling it. It keeps occuring, blocking my ability to do applications. Beca
-
My ipod touch is not being recognised as a device because it is disabled what do I do?
help
-
How do I apply a song to a certain number of slides?
I am wanting to start a song on a certain slide and let it play to the end. I am able to start it on the slide, but once I click to go to the next slide, the song stops playing. What do I need to do to have it continuous until the end?
-
The Photoshop has always worked well with the Minolta DimAge A2 using the RAW format. Now, it will not. Strange that Corel Paint Shop Pro X2 Ultimate works fine and cost less tha $100... Any responses out there about that?
-
Problem displaying language specific data
Hi All, I have to display PA0002-VORNA & PA0002-NACHN in my smart form. The issue is, this field is written in Vietnam and I am getting # where ever it encounter vietnam specific chanracter. Can any one suggest me how to get data properly f