Step 1: Understanding the Concept
Two vectors have the same direction only when one is a positive multiple of the other, so their components are in the same ratio.
Step 2: Calculation
Write \(\vec{B}=\lambda\vec{A}\). The \(\hat{i}\) components give \(2=2\lambda\), so \(\lambda=1\).
The \(\hat{j}\) components give \(-m=\lambda(-2)=-2\).
Step 3: Result
Hence \(m=2\). The \(\hat{k}\) components (8 and 8) already agree, which confirms \(\lambda=1\).
Final Answer:
The value of m is 2.
\[ \boxed{\text{(B) }2} \]