Welcome Guest [Log In] [Register]
Welcome to Brackenwood. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
beginBitmapFill
Topic Started: Feb 4 2006, 11:50 PM (810 Views)
Krob
Brackenwood Lightweight
the example in the flash help doesnt work for me o_O
i have the same problem as someone who posted a comment on it on livedocs
http://livedocs.macromedia.com/flash/8/mai...e=00001959.html
it always returns false..

how would i solve this? o_o
Offline Profile Quote Post Goto Top
 
smoscar_01
Member Avatar
Mid-Level ActionScripter
ok krob Im thinking your problem could be:

1) you dont have flash pro 8 and that code would not work for you

2)you are not linking your archive

If you do have a flash pro 8 copy then let me explain you this code

Code:
 

//you are giving linkageId the value of "libraryBitmap"
//which needs to be the name of the Bitmap that you
//are trying to call (IT MUST BE ALREADY IMPORTED
//TO LIBRARY)
var linkageId:String = "libraryBitmap";

//you are loading that bitmap into myBitmapData var
var myBitmapData:BitmapData = BitmapData.loadBitmap(linkageId);

//You are tracing an output True if it loaded correctly
//False for otherwise
trace(myBitmapData instanceof BitmapData); // true

//You are dinamically creating  an instance of a MovieClip
//called mc, naming it "mc" and putting it into the
//nextHighestDepth (this means that if you already had
//things at your scene mc will appear over them)
var mc:MovieClip = _root.createEmptyMovieClip("mc", _root.getNextHighestDepth());

//you are placing the loaded bitmap into mc
mc.attachBitmap(myBitmapData, _root.getNextHighestDepth());


ok thats what the code means but thats not the end you need to tell ActionScript which one is "libraryBitmap", in order to do that you need to enter to your library, right click the "libraryBitmap" and click on the linkage option, the linkage propertes window will pop up, tick the Export for ActionScript check box and write libraryBitmap as the identifier...

your program should work then....why dont you try it and let me know if it did :D
Offline Profile Quote Post Goto Top
 
Krob
Brackenwood Lightweight
nope still doesnt work o_O

i do have flash 8 pro though, publish settings to AS 2.0
(its the education version.. but that shoudnt make a difference)

this is the .fla http://home.scarlet.be/~kr0st1f/mck/flash/bitmap.fla

o_o thanks for helping me so far :P but it just doenst work .. it keeps returning false :P :worry:
Offline Profile Quote Post Goto Top
 
smoscar_01
Member Avatar
Mid-Level ActionScripter
ok Krob it is only a little error, what you are trying to call its a Bitmap, and at the library you have a Graphic object, import a .jpg file to the library of your Bitmap.fla, change the linkage Identifier and it will work correctly ;)
Offline Profile Quote Post Goto Top
 
Krob
Brackenwood Lightweight
hey that works :D thanks.. again
Offline Profile Quote Post Goto Top
 
smoscar_01
Member Avatar
Mid-Level ActionScripter
anytime bro ;)
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Actionscript · Next Topic »
Add Reply